home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / lib / emacs / 19.22 / etc / NEWS < prev    next >
Text File  |  1993-11-26  |  107KB  |  2,513 lines

  1. GNU Emacs NEWS -- history of user-visible changes.  27 Nov 1993
  2. Copyright (C) 1993 Free Software Foundation, Inc.
  3. See the end for copying conditions.
  4.  
  5. Please send Emacs bug reports to bug-gnu-emacs@prep.ai.mit.edu.
  6. For older news, see the file ONEWS.  For Lisp changes in Emacs 19,
  7. see the file LNEWS.
  8.  
  9. Changes in 19.22.
  10.  
  11. * The mouse click M-mouse-2 now inserts the current secondary
  12. selection (from Emacs or any other X client) where you click.
  13. It does not move point.
  14. This command is called mouse-yank-secondary.
  15.  
  16. mouse-kill-secondary no longer has a key binding by default.
  17. Clicking M-mouse-3 (mouse-secondary-save-then-kill) twice
  18. may be a convenient enough way of killing the secondary selection.
  19. Or perhaps there should be a keyboard binding for killing the
  20. secondary selection.  Any suggestions?
  21.  
  22. * New packages:
  23.  
  24. ** `icomplete' provides character-by-character information
  25. about what you could complete if you type TAB.
  26.  
  27. ** `avoid' moves the mouse away from point so that it doesn't hide
  28. your typing.
  29.  
  30. ** `shadowfile' helps you update files that are supposed to be stored
  31. identically in different places (perhaps on different machines).
  32.  
  33. * C-h p now knows about four additional keywords: data, faces, mouse,
  34. and matching.
  35.  
  36. * The key for starting an inferior Lisp process, in Lisp mode,
  37. is now C-c C-z instead of C-c C-l.
  38.  
  39. * When the VC commands ask whether to save the buffer, if you say no,
  40. they signal an error.  This is so that you won't operate on the wrong
  41. data.
  42.  
  43. * ISO Accents mode now supports `"s' as a way of typing German sharp s.
  44.  
  45. * By default, comint buffers (including Shell mode and debuggers)
  46. no longer try to scroll to keep the cursor on the bottom line.
  47. This feature was added in 19.21 but did not work smoothly enough.
  48.  
  49. * Emacs now handles the window manager "delete window" operation.
  50.  
  51. * Display of buffers with text properties is much faster now.
  52.  
  53. * The feature previously announced whereby `insert' does not inherit
  54. text properties from surrounding text was not fully implemented
  55. before; but now it is.  use `insert-and-inherit' if you wish to
  56. inherit sticky properties from the surrounding text.
  57.  
  58. * The functions next-property-change, previous-property-change,
  59. next-single-property-change, and previous-single-property-change
  60. now take one additional optional argument LIMIT that is a position at
  61. which to stop scanning.  If scan ends without finding the property
  62. change sought, these functions return the specified limit.
  63.  
  64. The value returned by previous-single-property-change and
  65. previous-property-change, when they do find a change, is now one
  66. greater than what it used to be.  It is the position between the two
  67. characters whose properties differ, which is one greater than the
  68. position of the first character found (while scanning back) with
  69. different properties.
  70.  
  71. User editing changes in version 19.21.
  72.  
  73. * ISO Accents mode supports four additional characters:
  74. A-with-ring (entered as /A), AE ligature (entered as /E),
  75. and their lower-case equivalents.
  76.  
  77. User editing changes in version 19.20.
  78. (See following page for Lisp programming changes.)
  79.  
  80. Note that some of these changes were made subsequent to the Emacs 19.20
  81. editions of the Emacs manual and Emacs Lisp manual; therefore, if you
  82. have those editions, do read this page.
  83.  
  84. * Dragging with mouse button 1 now puts the selected region
  85. in the kill ring so you can paste it into other X applications.
  86.  
  87. * Double and triple clicks with button 1 now behave as in xterm,
  88. selecting the word or line surrounding where you click.  If you drag
  89. after the last click, you can select a range of words or lines.
  90.  
  91. * You can use button 3 to extend a mouse-selected region, as in xterm.
  92. This works for regions selected either by dragging Mouse-1 or by
  93. multiple-clicking Mouse-1.  Clicking Mouse-3 moves the end of the
  94. region that is (initially) nearer to where you click.
  95.  
  96. If the selection was first made by multiple-clicking Mouse-1, and thus
  97. consists of entire words or lines, Mouse-3 preserves that state.
  98.  
  99. As before, clicking Mouse-3 again in the same place kills the region
  100. thus selected.
  101.  
  102. * The secondary selection commands, M-Mouse-1 and M-Mouse-3, have been
  103. likewise modified.
  104.  
  105. * You can now search for strings and regexps using the Edit menu bar menu.
  106.  
  107. * You can now access bookmarks using the Bookmark submenu in the File
  108. menu in the menu bar.
  109.  
  110. * ISO Accents mode, a buffer-local minor mode, provides a convenient
  111. way to type certain non-ASCII characters.  It makes the characters `,
  112. ', ", ^, ~ and / serve as modifiers for the following letter.  ` and '
  113. add accents, " adds an umlaut or diaresis, ^ adds a circumflex, ~
  114. adds a tilde, and / adds a slash to the following letter.
  115.  
  116. If the following character is not a letter, or cannot be modified as
  117. requested, then both characters stand for themselves.  If you
  118. duplicate the modifier accent character, that enters the corresponding
  119. ISO non-spacing accent character (thus, '' enters the ISO acute-accent
  120. character).  To enter a modifier character itself, type it followed by
  121. a space.
  122.  
  123. This feature can be used whenever a key sequence is expected: for
  124. ordinary insertion, for searching, and for certain command arguments.
  125.  
  126. A few special combinations:
  127.  
  128. ~c => c with cedilla
  129. ~d => d with stroke
  130. ~< => left guillemet
  131. ~> => right guillemet
  132.  
  133. * iso-transl.el is a new library that replaces iso-insert.el.
  134. It defines C-x 8 as an insertion prefix for the ISO characters
  135. between 128 and 255, much like iso-insert, except that iso-transl
  136. works even in searches and help commands--wherever a key sequence
  137. is expected.
  138.  
  139. To define case-conversion for these characters for ISO 8859/1,
  140. load the library iso-syntax.  (This is not new.)
  141.  
  142. * M-TAB in Text mode now runs the command ispell-complete-word
  143. which performs completion using the spelling dictionary.
  144.  
  145. The spelling correction submenu now includes this command 
  146. and another command which completes a word fragment (that is,
  147. it doesn't assume that the text to be completed starts at the
  148. beginning of a word.
  149.  
  150. * In incremental search, you can use M-y to yank the most recent kill
  151. into the search string.
  152.  
  153. * The new function ispell-message checks the spelling of a message
  154. you are about to send or post.  It ignores text cited from other
  155. messages.
  156.  
  157. To automatically check all your outgoing messages, include the
  158. following line in your .emacs file:
  159.   (setq news-inews-hook (setq mail-send-hook 'ispell-message))
  160.  
  161. * There is now a separate minibuffer history list for the names of
  162. extended commands.  This history list is used by M-x when reading
  163. the command name.  The motivation for this is to prevent command
  164. names from appearing in the history used for other minibuffer
  165. arguments.
  166.  
  167. Note that the history list for entire commands that use the minibuffer
  168. is a separate feature.  That history list records a command with all
  169. its arguments, and you must use C-x ESC ESC to access it.
  170.  
  171. * You can use the new command C-x v ~ VERSION RET to examine a
  172. specified version of a file that is maintained with version control.
  173.  
  174. * In Indented Text mode, only blank lines now separate paragraphs.
  175. Indented lines continue the paragraph that is in progress.  This makes
  176. the user option variable adaptive-fill-mode have its intended effect.
  177.  
  178. * Local variable specifications in files for variables whose names end
  179. in `-hook' and `-function' are now controlled by the variable
  180. `enable-local-eval', just like the `eval' variable.
  181.  
  182. * C-x r j (jump-to-register) when restoring a frame configuration now
  183. makes all unwanted frames (existing frames not mentioned in the
  184. configuration) invisible.
  185.  
  186. If you want to delete these unwanted frames, use a prefix argument for
  187. C-x r j.
  188.  
  189. * You can customize the calendar to display weeks beginning on
  190. Monday: set the variable `calendar-week-start-day' to 1.
  191.  
  192. * Rmail changes.
  193.  
  194. If you save messages to a file in Unix format while viewing a message
  195. with its whole header, this now copies to the file the entire header
  196. of each message copied.
  197.  
  198. * Comint mode changes.
  199.  
  200. C-c C-e shows as much output as possible in the window.
  201. C-c RET copies an old input (the one at point)
  202. and places the copy after the latest prompt.
  203. C-c C-p and C-c C-n move through the buffer, stopping at places
  204. where the subshell prompted for input.
  205. C-c C-h lists the input history in a `*Help*' buffer.
  206.  
  207. There are new menu bar items for completion/input/output/signal commands.
  208.  
  209. Input behaviour is configurable.  Variables control whether some windows
  210. showing the buffer scroll to the bottom before insertion.  These are
  211. `comint-scroll-to-bottom-on-input' and `before-change-function'.  By default,
  212. insertion causes the selected window to scroll to the bottom before insertion
  213. occurs.
  214.  
  215. Subprocess output now keeps point at the end of the buffer in each
  216. window individually if point was already at the end of the buffer in
  217. that window.
  218.  
  219. If `comint-scroll-show-maximum-output' is non-nil (which is the
  220. default), then scrolling due to arrival of output tries to place the
  221. last line of text at the bottom line of the window, so as to show as
  222. much useful text as possible.  (This mimics the scrolling behavior of
  223. many terminals.)
  224.  
  225. By setting `comint-scroll-to-bottom-on-output', you can opt for having
  226. point jump to the end of the buffer whenever output arrives--no matter
  227. where in the buffer point was before.  If the value is `this', point
  228. jumps in the selected window.  If the value is `all', point jumps in
  229. each window that shows the comint buffer.  If the value is `other',
  230. point jumps in all nonselected windows that show the current buffer.
  231. The default value is nil, which means point does not jump to the end.
  232.  
  233. Input history insertion is configurable.  A variable controls whether only the
  234. first instance of successive identical inputs is stored in the input history.
  235. This is `comint-input-ignoredups'.
  236.  
  237. Completion (bound to TAB) is now more general.  Depending on context,
  238. completion now operates on the input history, on command names, or (as
  239. before) on filenames.
  240.  
  241. Filename completion is configurable.  Variables control whether
  242. file/directory suffix characters are added (`comint-completion-addsuffix'),
  243. whether shortest completion is acceptable when no further unambiguous
  244. completion is possible (`comint-completion-recexact'), and the timing of
  245. completion candidate listing (`comint-completion-autolist').
  246.  
  247. Comint mode now provides history expansion.  Insert input using `!'
  248. and `^', in the same syntax that typical shells use; then type TAB.
  249. This searches the comint input history for a matching element,
  250. performs substitution if necessary, and places the result in the
  251. comint buffer in place of the original input.
  252.  
  253. History references in the input may be expanded before insertion into
  254. the input ring, or on input to the interpreter (and therefore
  255. visibly).  The variable `comint-input-autoexpand' specifies which.
  256.  
  257. You can make the SPC key perform history expansion by binding
  258. SPC to the command `comint-magic-space'.
  259.  
  260. The command `comint-dynamic-complete-variable' does variable name
  261. completion using the environment variables as set within Emacs.  The
  262. variables controlling filename completion apply to variable name
  263. completion too.  This command is normally available through the menu
  264. bar.
  265.  
  266. * Shell mode
  267.  
  268. Paragraph motion and marking commands (default bindings M-{, M-}, M-h) operate
  269. on output groups (i.e., shell prompt plus associated shell output).
  270.  
  271. TAB now completes commands, as well as file names and expand history.
  272. Commands are searched for along the path that Emacs has on startup.
  273.  
  274. C-c C-f now moves forward a command (`shell-forward-command') and
  275. C-c C-b now moves backward a command (`shell-backward-command').
  276.  
  277. Command completion is configurable.  The variables controlling
  278. filename completion in comint mode apply, together with a variable
  279. controlling whether to restrict possible completions to only files
  280. that are executable (`shell-command-execonly').
  281.  
  282. The input history is initialised from the file name given in the
  283. variable `shell-input-ring-file-name'--normally `.history' in your
  284. home directory.
  285.  
  286. Directory tracking is more robust.  It can cope with command sequences
  287. and forked commands, and can detect the failure of directory changing
  288. commands in most circumstances.  It's still not infallible, of course.
  289.  
  290. You can now configure the behaviour of `pushd'.  Variables control
  291. whether `pushd' behaves like `cd' if no argument is given
  292. (`shell-pushd-tohome'), pop rather than rotate with a numeric argument
  293. (`shell-pushd-dextract'), and only add directories to the directory
  294. stack if they are not already on it (`shell-pushd-dunique').  The
  295. configuration you choose should match the underlying shell, of course.
  296.  
  297. Emacs Lisp programming changes in Emacs 19.20.
  298.  
  299. * A new function `remove-hook' is now used to remove a hook that you might
  300. have added with `add-hook'.
  301.  
  302. * There is now a Lisp pretty-printer in the library `pp'.
  303.  
  304. * The partial Common Lisp support has been entirely reimplemented.
  305.  
  306. * When you insert text using `insert', `insert-before-markers' or
  307. `insert-buffer-substring', text properties are no longer inherited
  308. from the surrounding text.
  309.  
  310. When you want to inherit text properties, use the new functions
  311. `insert-and-inherit' or `insert-before-markers-and-inherit'.
  312.  
  313. The self-inserting character command does do inheritance.
  314.  
  315. * Frame creation hooks.
  316.  
  317. The function make-frame now runs the normal hooks
  318. before-make-frame-hook and after-make-frame-hook.
  319.  
  320. * You can now use function-key-map to make a key an alias for other
  321. key sequences that can vary depending on circumstances.  To do this,
  322. give the key a definition in function-key-map which is a function
  323. rather than a specific expansion key sequence.
  324.  
  325. If the function reads input itself, it can have the effect of altering
  326. the event that follows.  For example, here's how to define C-c h to
  327. turn the character that follows into a hyper character:
  328.  
  329. (define-key function-key-map "\C-ch" 'hyperify)
  330.  
  331. (defun hyperify (prompt)
  332.   (let ((e (if prompt (message "%s%s" prompt (single-key-description 
  333.        (read-event)))
  334.     (vector (if (numberp e)
  335.         (logior (lsh 1 20) e)
  336.           (if (memq 'hyper (event-modifiers e))
  337.           e
  338.         (add-event-modifier "H-" e))))))
  339.  
  340. (defun add-event-modifier (string e)
  341.   (let ((symbol (if (symbolp e) e (car e))))
  342.     (setq symbol (intern (concat string (symbol-name symbol))))
  343.     (if (symbolp e)
  344.     symbol
  345.       (cons symbol (cdr e)))))
  346.  
  347. The character translation function gets one argument, which is the
  348. prompt that was specified in read-key-sequence--or nil if the key
  349. sequence is being read by the editor command loop.  In most cases
  350. you can just ignore the prompt value.
  351.  
  352. * Changes for reading and writing text properties.
  353.  
  354. New low-level Lisp features make it possible to write Lisp programs to
  355. save text properties in files, and read text properties from files.
  356. You can program any file format you like.
  357.  
  358. The variable `write-region-annotation-functions' should contain a list
  359. of functions to be run by `write-region' to encode text properties in
  360. some fashion as annotations to the text that is written.
  361.  
  362. Each function in the list is called with two arguments: the start and
  363. end of the region to be written.  These functions should not alter the
  364. contents of the buffer.  Instead, they should return lists indicating
  365. annotations to write in the file in addition to the text in the
  366. buffer.
  367.  
  368. Each function should return a list of elements of the form (POSITION
  369. . STRING), where POSITION is an integer specifying the relative
  370. position in the text to be written, and STRING is the annotation to
  371. add there.
  372.  
  373. Each list returned by one of these functions must be already sorted in
  374. increasing order by POSITION.  If there is more than one function,
  375. `write-region' merges the lists destructively into one sorted list.
  376.  
  377. When `write-region' actually writes the text from the buffer to the
  378. file, it intermixes the specified annotations at the corresponding
  379. positions.  All this takes place without modifying the buffer.
  380.  
  381. The variable `after-insert-file-functions' should contain a list of
  382. functions to be run each time a file's contents have been inserted into
  383. a buffer.  Each function receives one argument, the length of the
  384. inserted text; point indicates the start of that text.  The function
  385. should make whatever changes it wants to make, then return the updated
  386. length of the inserted text, as it stands after those changes.  The
  387. value returned by one function is used as the argument to the next.
  388. These functions should always return with point at the beginning of
  389. the inserted text.
  390.  
  391. The intended use of `after-insert-file-functions' is for converting
  392. some sort of textual annotations into actual text properties.  But many
  393. other uses may be possible.
  394.  
  395. We now invite users to begin implementing Lisp programs to store and
  396. retrieve text properties in files, using these new primitive features,
  397. and thus to experiment with various data formats and find good ones.
  398.  
  399. We suggest not trying to handle arbitrary Lisp objects as property
  400. names or property values--because a program that general is probably
  401. difficult to write, and slow.  Instead, choose a set of possible data
  402. types that are reasonably flexible, and not too hard to encode.
  403.  
  404. * Comint completion.
  405.  
  406. Currently comint-dynamic-complete-command (and associated variable
  407. comint-after-partial-pathname-command) are set by default to complete a
  408. filename.  Other comint-mode users should have their own functions to achieve
  409. this.  For example, gud-mode could complete debugger commands.  A completion
  410. function is provided solely for this reason (comint-dynamic-simple-complete).
  411.  
  412. Other comint-mode users should bind comint-dynamic-complete (shell-mode does
  413. already).
  414.  
  415. * Comint history reference expansion
  416.  
  417. Currently comint-input-autoexpand is 'history, which means only expand
  418. history on insertion to comint-input-ring.  For non-shell modes, this is
  419. a strange default, since non-shells will not understand history references.
  420. Perhaps it would be better for the variable to be 'input, which means expand
  421. on RET.
  422.  
  423. The value 'history might possibly be wrong even for shells, since the
  424. expansion will be done both by comint and the underlying shell (except sh, of
  425. course).  It would be better for expansion to be done by one or the other,
  426. not both since they may (ahem) disagree.  Since it is silly to put a literal
  427. history reference into comint-input-ring, perhaps it would be better for the
  428. variable to be 'input too.
  429.  
  430. The reason the variable is not 'input by default is that I was attempting to
  431. adhere to The Principle of Least Astonishment.  I didn't want to shock users
  432. by having their input change in front of their eyes.
  433.  
  434. * Argument delimiters and Comint mode.
  435.  
  436. Currently comint-delimiter-argument-list is '(), which means no strings are
  437. to be treated as delimiters and arguments.  In shell-mode, this variable is
  438. set to shell-delimiter-argument-list, '("|" "&" "<" ">" "(" ")" ";").  Other
  439. comint-mode users should set this variable too.  For example, a lisp-type
  440. mode might want to set this to '("." "(" ")") or some such.
  441.  
  442. * Comint output hook.
  443.  
  444. There is now a hook, comint-output-filter-hook, that is run-hooks'ed by the
  445. output filter, comint-output-filter.  This is useful for scrolling (see
  446. below), but also things like processing output for specific text, output
  447. hilighting, etc.
  448.  
  449. So that such output processing may be done efficiently, there is a new
  450. variable, comint-last-output-start, that records the position of the start of
  451. the lastest output inserted into the buffer (effectively the previous value
  452. of process-mark).  Output processing functions should process the text
  453. between comint-last-output-start (or perhaps the beginning of the line that
  454. the position lies on) and process-mark.
  455.  
  456. * Comint scrolling.
  457.  
  458. There is now automatic scrolling of process windows.
  459.  
  460. Currently comint-scroll-show-maximum-output is t, which means when scrolling
  461. output put process-mark at the bottom of the window.  There is a good case
  462. for it to be t, since the user is likely to want to see as much output as
  463. possible.  But, then again, there is a comint-show-maximum-output command.
  464.  
  465. * Comint history retrieval.
  466.  
  467. The input following point is not deleted when moving around the input history
  468. (with M-p etc.).  Emacs maintainers may not like this.  However, I feel this
  469. is a useful feature.  The simple remedy is to put end-of-line in before
  470. delete-region in comint-previous-matching-input.
  471.  
  472. The input history retrieval commands still wrap-around the input ring, unlike
  473. Emacs command history.
  474.  
  475. Changes in version 19.19.
  476.  
  477. * The new package bookmark.el records named bookmarks: positions that
  478. you can jump to.  Bookmarks are saved automatically between Emacs
  479. sessions.
  480.  
  481. * Another simpler package saveplace.el records your position in each
  482. file when you kill its buffer (or kill Emacs), and jumps to the same
  483. position when you visit the file again (even in another Emacs
  484. session).  Use `toggle-save-place' to turn on place-saving in a given file;
  485. use (setq-default save-place t) to turn it on for all files.
  486.  
  487. * In Outline mode, you can now customize how to compute the level of a
  488. heading line.  Set `outline-level' to a function of no arguments which
  489. returns the level, assuming point is at the beginning of a heading
  490. line.
  491.  
  492. * You can now specify the prefix key to use for Outline minor mode.
  493. (The default is C-c.)  Set the variable outline-minor-mode-prefix to
  494. the key sequence you want to use (as a string or vector).
  495.  
  496. * In Bibtex mode, C-c e has been changed to C-c C-b.  This is because
  497. C-c followed by a letter is reserved for users.
  498.  
  499. * The `mod' function is no longer an alias for `%', but is a separate function
  500. that yields a result with the same sign as the divisor.  `floor' now takes an
  501. optional second argument, which divides the first argument before the floor is
  502. taken.
  503.  
  504. * `%' no longer allows floating point arguments, since the results were often
  505. inconsistent with integer `%'.
  506.  
  507. Changes in version 19.18.
  508.  
  509. * Typing C-z in an iconified Emacs frame now deiconifies it.
  510.  
  511. * hilit19 is a new library for automatic highlighting of parts of the
  512. text in the buffer, based on its meaning and context.
  513.  
  514. * Killing no longer sends the killed text to the X clipboard.
  515. And large strings are not put in the cut buffer either.
  516. The variable x-cut-buffer-max specifies the maximum number of characters
  517. to put in the cut buffer.
  518.  
  519. * The new command C-x 5 o (other-frame) selects different frames,
  520. successively, in cyclic order.  It does for frames what C-x o
  521. does for windows.
  522.  
  523. * The command M-ESC (eval-expression) has its own command history.
  524.  
  525. * The commands M-! and M-| for running shell commands have their own
  526. command history.
  527.  
  528. * If the directory containing the Emacs executable has a sibling named
  529. `lisp', that `lisp' directory is added to the end of `load-path'
  530. (provided you don't override the normal value with the EMACSLOADPATH
  531. environment variable).  This feature may make it easier to move
  532. an installed Emacs from place to place.
  533.  
  534. * M-x validate-tex-buffer now records the locations of mismatches
  535. found in the `*Occur*' buffer.  You can go to that buffer and type C-c
  536. C-c to visit a particular mismatch.
  537.  
  538. * There are new commands in Shell mode.
  539.  
  540. C-c C-n and C-c C-p move point to the next or previous shell input line.
  541.  
  542. C-c C-d is now another way to send an end-of-file to the subshell.
  543.  
  544. * Changes to calendar/diary.
  545.  
  546. Time zone data is now determined automatically, including the
  547. start/stop days and times of daylight savings time.  The code now
  548. works correctly almost anywhere in the world.
  549.  
  550. The format of the holiday specifications has changed and IS NO LONGER
  551. COMPATIBLE with the old (version 18) format.  See the documentation of
  552. the variable calendar-holidays for details of the new, improved
  553. format.
  554.  
  555. The hook `diary-display-hook' has been split into two:
  556. diary-display-hook which should be used ONLY for the display and
  557. `diary-hook' which should be used for appointment notification.  If
  558. diary-display-hook is nil (the default), simple-diary-display is
  559. used.  This allows the diary hooks to be correctly set with add-hook.
  560.  
  561. The forms used for dates in diary entries and general display are no
  562. longer autoloaded, but set at load time; this means they will be set
  563. correctly based on values you assign to various variables.
  564.  
  565. * The functions x-rebind-key and x-rebind-keys have been deleted,
  566. because you can accomplish the same job by binding keys to keyboard
  567. macros.
  568.  
  569. * Emacs now distinguishes double and triple drag events and double and
  570. triple button-down events.  These work analogously to double and
  571. triple click events.
  572.  
  573. Double drag events, if not defined, convert to ordinary click events.
  574. Double down events, if not defined, convert first to ordinary down
  575. events, which are then discarded if not defined.  Triple events that
  576. are not defined convert to the corresponding double event; if that is
  577. also not defined, it may convert further.
  578.  
  579. * The new function event-click-count returns the number of clicks,
  580. from an event which is a list.  It is 1 for an ordinary click, drag,
  581. or button-down event, 2 for a double event, and 3 or more for a triple
  582. event.
  583.  
  584. * The new function previous-frame is like next-frame, but moves
  585. around through the set of existing frames in the opposite order.
  586.  
  587. * The post-command-hook now runs even after commands that get an error
  588. and return to top level.  As a consequence of the same change, this
  589. hook also runs before Emacs reads the first command.  That might sound
  590. paradoxical, as if this hook were the same as the pre-command-hook.
  591. Actually, they are not similar; the latter runs before *execution* of
  592. a command, but after it has been read.
  593.  
  594. * You can turn off the text property hooks that run when point moves
  595. to certain places in the buffer, by binding inhibit-point-motion-hooks
  596. to a non-nil value.
  597.  
  598. * Inserting a string with no text properties into the buffer normally
  599. inherits the properties of the preceding character.  You can now
  600. control this inheritence by setting the front-sticky and
  601. rear-nonsticky properties of a character.
  602.  
  603. If you make a character's front-sticky property t, then insertion
  604. before the character inherits its properties.  If you make the
  605. rear-nonsticky property t, then insertion after the character does not
  606. inherit its properties.  You can regard characters as normally being
  607. rear-sticky and not front-sticky, and this is why insertion normally
  608. inherits from the previous character.
  609.  
  610. If neither side of an insertion is suitably sticky, then the inserted
  611. text gets no properties.  If both sides are sticky, then the inserted
  612. text gets the properties of both sides, with the previous character's
  613. properties taking precedence when both sides have a property in
  614. common.
  615.  
  616. You can also specify stickiness for individual properties.  To do so,
  617. use a list of property names as the value of the front-sticky property
  618. or the rear-nonsticky property.  For example, if a character has a
  619. rear-nonsticky property whose value is (face read-only), then
  620. insertion after the character will not inherit its face property or
  621. read-only property (if any), but will inherit any other properties.
  622.  
  623. The merging of properties when both sides of the insertion are sticky
  624. takes place one property at a time.  If the preceding character is
  625. rear-sticky for the property, and the property is non-nil, it
  626. dominates.  Otherwise, the following character's property value is
  627. used if it is front-sticky for that property.
  628.  
  629. * If you give a character a non-nil `invisible' text property, the
  630. character does not appear on the screen.  This works much like
  631. selective display.
  632.  
  633. The details of this feature are likely to change in future Emacs
  634. versions.
  635.  
  636. * In Info, when you go to a node, it runs the normal hook
  637. Info-selection-hook.
  638.  
  639. * You can use the new function `invocation-directory' to get the name
  640. of the directory containing the Emacs executable that was run.
  641.  
  642. * Entry to the minibuffer runs the normal hook minibuffer-setup-hook.
  643.  
  644. * The new function minibuffer-window-active-p takes one argument, a
  645. minibuffer window, and returns t if the window is currently active.
  646.  
  647. Changes in version 19.17.
  648.  
  649. * When Emacs displays a list of completions in a buffer, 
  650. you can select a completion by clicking mouse button 2
  651. on that completion.
  652.  
  653. * Use the command `list-faces-display' to display a list of 
  654. all the currently defined faces, showing what they look like.
  655.  
  656. * Menu bar items from local maps now come after the usual items.
  657.  
  658. * The Help menu bar item always comes last in the menu bar.
  659.  
  660. * If you enable Font-Lock mode on a buffer containing a program
  661. (certain languages such as C and Lisp are supported), everything you
  662. type is automatically given a face property appropriate to its
  663. syntactic role.  For example, there are faces for comments, string
  664. constants, names of functions being defined, and so on.
  665.  
  666. * Dunnet, an adventure game, is now available.
  667.  
  668. * Several major modes now have their own menu bar items, 
  669. including Dired, Rmail, and Sendmail.  We would like to add 
  670. suitable menu bar items to other major modes.
  671.  
  672. * The key binding C-x a C-h has been eliminated.
  673. This is because it got in the way of the general feature of typing
  674. C-h after a prefix character.  If you want to run
  675. inverse-add-global-abbrev, you can use C-x a - or C-x a i g instead.
  676.  
  677. * If you set the variable `rmail-mail-new-frame' to a non-nil value,
  678. all the Rmail commands to send mail make a new frame to do it in.
  679. When you send the message, or use the menu bar command not to send it,
  680. that frame is deleted.
  681.  
  682. * In Rmail, the o and C-o commands are now almost interchangeable.
  683. Both commands check the format of the file you specify, and append
  684. the message to it in Rmail format if it is an Rmail file, and in
  685. inbox file format otherwise.  C-o and o are different only when you
  686. specify a new file.
  687.  
  688. * The function `copy-face' now takes an optional fourth argument
  689. NEW-FRAME.  If you specify this, it copies the definition of face
  690. OLD-FACE on frame FRAME to face NEW-NAME on frame NEW-FRAME.
  691.  
  692. * A local map can now cancel out one of the global map's menu items.
  693. Just define that subcommand of the menu item with `undefined'
  694. as the definition.  For example, this cancels out the `Buffers' item
  695. for the current major mode:
  696.  
  697.     (local-set-key [menu-bar buffer] 'undefined)
  698.  
  699. * To put global items at the end of the menu bar, use the new variable
  700. `menu-bar-final-items'.  It should be a list of symbols--event types
  701. bound in the menu bar.  The menu bar items for these symbols are
  702. moved to the end.
  703.  
  704. * The list returned by `buffer-local-variables' now contains cons-cell
  705. elements of the form (SYMBOL . VALUE) only for buffer-local variables
  706. that have values.  For unbound buffer-local variables, the variable
  707. name (symbol) appears directly as an element of the list.
  708.  
  709. * The `modification-hooks' property of a character no longer affects
  710. insertion; it runs only for deletion and modification of the character.
  711.  
  712. To detect insertion, use `insert-in-front-hooks' and
  713. `insert-behind-hooks' properties.  The former runs when text is
  714. inserted immediately preceding the character that has the property;
  715. the latter runs when text is inserted immediately following the
  716. character.
  717.  
  718. * Buffer modification now runs hooks belonging to overlays as well as
  719. hooks belonging to characters.  If an overlay has a
  720. `modification-hooks' property, it applies to any change to text in the
  721. overlay, and any insertion within the overlay.  If the overlay has a
  722. `insert-in-front-hooks' property, it runs for insertion at the
  723. beginning boundary of the overlay.  If the overlay has an
  724. `insert-behind-hooks' property, it runs for insertion at the end
  725. boundary of the overlay.
  726.  
  727. The values of these properties should be lists of functions.  Each
  728. function is called, receiving as arguments the overlay in question,
  729. followed by the bounds of the range being modified.
  730.  
  731. * The new `-name NAME' option directs Emacs to search for its X
  732. resources using the name `NAME', and sets the title of the initial
  733. frame.  This argument was added for consistency with other X clients.
  734.  
  735. * The new `-xrm DATABASE' option tells Emacs to treat the string
  736. DATABASE as the text of an X resource database.  Emacs searches
  737. DATABASE for resource values, in addition to the usual places.  This
  738. argument was added for consistency with other X clients.
  739.  
  740. * Emacs now searches for X resources in the files specified by the
  741. XFILESEARCHPATH, XUSERFILESEARCHPATH, and XAPPLRESDIR environment
  742. variables, emulating the functionality provided by programs written
  743. using Xt.  Because of this change, Emacs will now notice system-wide
  744. application defaults files, as other X clients do.
  745.  
  746. XFILESEARCHPATH and XUSERFILESEARCHPATH should be a list of file names
  747. separated by colons; XAPPLRESDIR should be a list of directory names
  748. separated by colons.
  749.  
  750. Emacs searches for X resources
  751.   + specified on the command line, with the `-xrm RESOURCESTRING'
  752.     option,
  753.   + then in the value of the XENVIRONMENT environment variable,
  754.     - or if that is unset, in the file named ~/.Xdefaults-HOSTNAME if it exists
  755.       (where HOSTNAME is the hostname of the machine Emacs is running on),
  756.   + then in the screen-specific and server-wide resource properties
  757.     provided by the server,
  758.     - or if those properties are unset, in the file named ~/.Xdefaults
  759.       if it exists,
  760.   + then in the files listed in XUSERFILESEARCHPATH,
  761.     - or in files named LANG/Emacs in directories listed in XAPPLRESDIR
  762.       (where LANG is the value of the LANG environment variable), if
  763.       the LANG environment variable is set,
  764.     - or in files named Emacs in the directories listed in XAPPLRESDIR
  765.     - or in ~/LANG/Emacs (if the LANG environment variable is set),
  766.     - or in ~/Emacs,
  767.   + then in the files listed in XFILESEARCHPATH.
  768.  
  769. The paths in the variables XFILESEARCHPATH, XUSERFILESEARCHPATH, and
  770. XAPPLRESDIR may contain %-escapes (like the control strings passed to
  771. the the Emacs lisp `format' function or C printf function), which
  772. Emacs expands.
  773.  
  774. %N is replaced by the string "Emacs" wherever it occurs.
  775. %T is replaced by "app-defaults" wherever it occurs.
  776. %S is replaced by the empty string wherever it occurs.
  777. %L and %l are replaced by the value of the LANG environment variable; if LANG
  778.    is not set, Emacs does not use that directory or file name at all.
  779. %C is replaced by the value of the resource named "customization"
  780.    (class "Customization"), as retrieved from the server's resource
  781.    properties or the user's ~/.Xdefaults file, or the empty string if
  782.    that resource doesn't exist.
  783.  
  784. So, for example,
  785.   if XFILESEARCHPATH is set to the value
  786.     "/usr/lib/X11/%L/%T/%N%C:/usr/lib/X11/%T/%N%C:/usr/lib/X11/%T/%N",
  787.   and the LANG environment variable is set to
  788.     "english",
  789.   and the customization resource is the string
  790.     "-color",
  791. then, in the last step of the process described above, Emacs checks
  792. for resources in the first of the following files that is present and
  793. readable:
  794.     /usr/lib/X11/english/app-defaults/Emacs-color
  795.     /usr/lib/X11/app-defaults/Emacs-color
  796.     /usr/lib/X11/app-defaults/Emacs
  797. If the LANG environment variable is not set, then Emacs never uses the
  798. first element of the path, "/usr/lib/X11/%L/%T/%N%C", because it
  799. contains the %L escape.
  800.  
  801. If XFILESEARCHPATH is unset, Emacs uses the default value
  802. "/usr/lib/X11/%L/app-defaults/Emacs%C:\
  803. /usr/lib/X11/app-defaults/Emacs%C:\
  804. /usr/lib/X11/%L/app-defaults/Emacs:\
  805. /usr/lib/X11/app-defaults/Emacs"
  806.  
  807. This feature was added for consistency with other X applications.
  808.  
  809. * The new function `text-property-any' scans the region of text from
  810. START to END to see if any character's property PROP is `eq' to
  811. VALUE.  If so, it returns the position of the first such character.
  812. Otherwise, it returns nil.
  813.  
  814. The optional fifth argument, OBJECT, specifies the string or buffer to
  815. be examined.
  816.  
  817. * The new function `text-property-not-all' scans the region of text from
  818. START to END to see if any character's property PROP is not `eq' to
  819. VALUE.  If so, it returns the position of the first such character.
  820. Otherwise, it returns nil.
  821.  
  822. The optional fifth argument, OBJECT, specifies the string or buffer to
  823. be examined.
  824.  
  825. * The function `delete-windows-on' now takes an optional second
  826. argument FRAME, which specifies which frames it should affect.
  827.   + If FRAME is nil or omitted, then `delete-windows-on' deletes windows
  828.     showing BUFFER (its first argument) on all frames.
  829.   + If FRAME is t, then `delete-windows-on' only deletes windows on the
  830.     selected frame; other frames are unaffected.
  831.   + If FRAME is a frame, then `delete-windows-on' only deletes windows on
  832.     the given frame; other frames are unaffected.
  833.  
  834.  
  835. Changes in version 19.16.
  836.  
  837. * When dragging the mouse to select a region, Emacs now highlights the
  838. region as you drag (if Transient Mark mode is enabled).  If you
  839. continue the drag beyond the boundaries of the window, Emacs scrolls
  840. the window at a steady rate until you either move the mouse back into
  841. the window or release the button.
  842.  
  843. * RET now exits `query-replace' and `query-replace-regexp'; this makes it
  844. more consistent with the incremental search facility, which uses RET
  845. to end the search.
  846.  
  847. * In C mode, C-c C-u now runs c-up-conditional.
  848. C-c C-n and C-c C-p now run new commands that move forward
  849. and back over balanced sets of C conditionals (c-forward-conditional
  850. and c-backward-conditional).
  851.  
  852. * The Edit entry in the menu bar has a new alternative:
  853. "Choose Next Paste".  It gives you a menu showing the various
  854. strings in the kill ring; click on one to select it as the text 
  855. to be yanked ("pasted") the next time you yank.
  856.  
  857. * If you enable Transient Mark mode and set `mark-even-if-inactive' to
  858. non-nil, then the region is highlighted in a transient fashion just as
  859. normally in Transient Mark mode, but the mark really remains active
  860. all the time; commands that use the region can be used even if the
  861. region highlighting turns off.
  862.  
  863. * If you type C-h after a prefix key, it displays the bindings
  864. that start with that prefix.
  865.  
  866. * The VC package now searches for version control commands in the
  867. directories named by the variable `vc-path'; its value should be a
  868. list of strings.
  869.  
  870. * If you are visiting a file that has locks registered under RCS,
  871. VC now displays each lock's owner and version number in the mode line
  872. after the string `RCS'.  If there are no locks, VC displays the head
  873. version number.
  874.  
  875. * When using X, if you load the `paren' library, Emacs automatically
  876. underlines or highlights the matching paren whenever point is
  877. next to the outside of a paren.  When point is before an open-paren,
  878. this shows the matching close; when point is after a close-paren,
  879. this shows the matching open.
  880.  
  881. * The new function `define-key-after' is like `define-key',
  882. but takes an extra argument AFTER.  It places the newly defined
  883. binding after the binding for the event AFTER.
  884.  
  885. * `accessible-keymaps' now takes an optional second argument, PREFIX.
  886. If PREFIX is non-nil, it means the value should include only maps for
  887. keys that start with PREFIX.
  888.  
  889. `describe-bindings' also accepts an optional argument PREFIX which
  890. means to describe only the keys that start with PREFIX.
  891.  
  892. * The variable `prefix-help-command' hold a command to run to display help
  893. whenever the character `help-char' follows a prefix key and does not have
  894. a key binding in that context.
  895.  
  896. * Emacs now detects double- and triple-mouse clicks.  A single mouse
  897. click produces a pair events of the form:
  898.     (down-mouse-N POSITION)
  899.     (mouse-N POSITION)
  900. Clicking the same mouse button again, soon thereafter and at the same
  901. location, produces another pair of events of the form:
  902.     (down-mouse-N POSITION)
  903.     (double-mouse-N POSITION 2)
  904. Another click will produce an event pair of the form:
  905.     (down-mouse-N POSITION)
  906.     (triple-mouse-N POSITION 3)
  907. All the POSITIONs in such a sequence would be identical, except for
  908. their timestamps.
  909.  
  910. To count as double- and triple-clicks, mouse clicks must be at the
  911. same location as the first click, and the number of milliseconds
  912. between the first release and the second must be less than the value
  913. of the lisp variable `double-click-time'.  Setting `double-click-time'
  914. to nil disables multi-click detection.  Setting it to t removes the
  915. time limit; Emacs then detects multi-clicks by position only.
  916.  
  917. If `read-key-sequence' finds no binding for a double-click event, but
  918. the corresponding single-click event would be bound,
  919. `read-key-sequence' demotes it to a single-click.  Similarly, it
  920. demotes unbound triple-clicks to double- or single-clicks.  This means
  921. you don't have to distinguish between single- and multi-clicks if you
  922. don't want to.
  923.  
  924. Emacs reports all clicks after the third as `triple-mouse-N' clicks,
  925. but increments the click count after POSITION.  For example, a fourth
  926. click, soon after the third and at the same location, produces a pair
  927. of events of the form:
  928.     (down-mouse-N POSITION)
  929.     (triple-mouse-N POSITION 4)
  930.  
  931. * The way Emacs reports positions of mouse events has changed
  932. slightly.  If a mouse event includes a position list of the form:
  933.     (WINDOW (PLACE-SYMBOL) (COLUMN . ROW) TIMESTAMP)
  934. this denotes exactly the same position as the list:
  935.     (WINDOW  PLACE-SYMBOL  (COLUMN . ROW) TIMESTAMP)
  936. That is, the event occurred over a non-textual area of the frame,
  937. specified by PLACE-SYMBOL, a symbol like `mode-line' or
  938. `vertical-scroll-bar'.
  939.  
  940. Enclosing PLACE-SYMBOL in a singleton list does not change the
  941. position denoted, but the `read-key-sequence' function uses the
  942. presence or absence of the singleton list to tell whether or not it
  943. should prefix the event with its place symbol.
  944.  
  945. Normally, `read-key-sequence' prefixes mouse events occuring over
  946. non-textual areas with their PLACE-SYMBOLs, to select the sub-keymap
  947. appropriate for the event; for example, clicking on the mode line
  948. produces a sequence like
  949.     [mode-line (mouse-1 POSN)]
  950. However, if lisp code elects to unread the resulting key sequence by
  951. placing it in the `unread-command-events' variable, it is important
  952. that `read-key-sequence' not insert the prefix symbol again; that
  953. would produce a malformed key sequence like
  954.     [mode-line mode-line (mouse-1 POSN)]
  955. For this reason, `read-key-sequence' encloses the event's PLACE-SYMBOL
  956. in a singleton list when it first inserts the prefix, but doesn't
  957. insert the prefix when processing events whose PLACE-SYMBOLs are
  958. already thus enclosed.
  959.  
  960.  
  961. Changes in version 19.15.
  962.  
  963. * `make-frame-visible', which uniconified frames, is now a command,
  964. and thus may be bound to a key.  This makes sense because frames
  965. respond to user input while iconified.
  966.  
  967. * You can now use Meta mouse clicks to set and use the "secondary
  968. selection".  You can drag M-Mouse-1 across the region you want to
  969. select.  Or you can press M-Mouse-1 at one end and M-Mouse-3 at the
  970. other (this also copies the text to the kill ring).  Repeating M-Mouse-3
  971. again at the same place kills that text.
  972.  
  973. M-Mouse-2 kills the secondary selection.
  974.  
  975. Setting the secondary selection does not move point or the mark.  It
  976. is possible to make a secondary selection that does not all fit on the
  977. screen, by using M-Mouse-1 at one end, scrolling, then using M-Mouse-3
  978. at the other end.
  979.  
  980. Emacs has only one secondary selection at any time.  Starting to set
  981. a new one cancels any previous one.  The secondary selection displays
  982. using a face named `secondary-selection'.
  983.  
  984. * There's a new way to request use of Supercite (sc.el).  Do this:
  985.  
  986.     (add-hook 'mail-citation-hook 'sc-cite-original)
  987.  
  988. Currently this works with Rmail.  In the future, other Emacs based
  989. mail-readers should be modified to understand this hook also.
  990. In the mean time, you should keep doing what you have done in the past
  991. for those other mail readers.
  992.  
  993. * When a regular expression contains `\(...\)' inside a repetition
  994. operator such as `*' or `+', and you ask about the range that was matched
  995. using `match-beginning' and `match-end', the range you get corresponds
  996. to the *last* repetition *only*.  In Emacs 18, you would get a range
  997. corresponding to all the repetitions.
  998.  
  999. If you want to get a range corresponding to all the repetitions,
  1000. put a `\(...\)' grouping *outside* the repetition operator.  This
  1001. is the syntax that corresponds logically to the desired result, and
  1002. it works the same in Emacs 18 and Emacs 19.
  1003.  
  1004. (This change actually took place earlier, but we didn't know about it
  1005. and thus didn't document it.)
  1006.  
  1007. Changes in version 19.14.
  1008.  
  1009. * To modify read-only text, bind the variable `inhibit-read-only'
  1010. to a non-nil value.  If the value is t, then all reasons that might
  1011. make text read-only are inhibited (including `read-only' text properties).
  1012. If the value is a list, then a `read-only' property is inhibited
  1013. if it is `memq' in the list.
  1014.  
  1015. * If you call `get-buffer-window' passing t as its second argument, it
  1016. will only search for windows on visible frames.  Previously, passing t
  1017. as the secord argument caused `get-buffer-window' to search all
  1018. frames, visible or not.
  1019.  
  1020. * If you call `other-buffer' with a nil or omitted second argument, it
  1021. will ignore buffers displayed windows on any visible frame, not just
  1022. the selected frame.
  1023.  
  1024. * You can specify a window or a frame for C-x # to use when
  1025. selects a server buffer.  Set the variable server-window
  1026. to the window or frame that you want.
  1027.  
  1028. * The command M-( now inserts spaces outside the open-parentheses in
  1029. some cases--depending on the syntax classes of the surrounding
  1030. characters.  If the variable `parens-dont-require-spaces' is non-nil,
  1031. it inhibits insertion of these spaces.
  1032.  
  1033. * The GUD package now supports the debugger known as xdb on HP/UX
  1034. systems.  Use M-x xdb.  The variable `gud-xdb-directories' lets you
  1035. specify a list of directories to search for source code.
  1036.  
  1037. * If you are using the mailabbrev package, you should note that its
  1038. function for defining an alias is now called `define-mail-abbrev'.
  1039. This package no longer contains a definition for `define-mail-alias';
  1040. that name is used only in mailaliases.
  1041.  
  1042. * Inserted characters now inherit the properties of the text before
  1043. them, by default, rather than those of the following text.
  1044.  
  1045. * The function `insert-file-contents' now takes optional arguments BEG
  1046. and END that specify which part of the file to insert.  BEG defaults to
  1047. 0 (the beginning of the file), and END defaults to the end of the file.
  1048.  
  1049. If you specify BEG or END, then the argument VISIT must be nil.
  1050.  
  1051. Changes in version 19.13.
  1052.  
  1053. * Magic file names can now handle the `load' operation.
  1054.  
  1055. * Bibtex mode now sets up special entries in the menu bar.
  1056.  
  1057. * The incremental search commands C-w and C-y, which copy text from
  1058. the buffer into the search string, now convert it to lower case
  1059. if you are in a case-insensitive search.  This is to avoid making
  1060. the search a case-sensitive one.
  1061.  
  1062. * GNUS now knows your time zone automatically if Emacs does.
  1063.  
  1064. * Hide-ifdef mode no longer defines keys of the form
  1065. C-c LETTER, since those keys are reserved for users.
  1066. Those commands have been moved to C-c M-LETTER.
  1067. We may move them again for greater consistency with other modes.
  1068.  
  1069. Changes in version 19.12.
  1070.  
  1071. * You can now make many of the sort commands ignore case by setting
  1072. `sort-fold-case' to a non-nil value.
  1073.  
  1074. Changes in version 19.11.
  1075.  
  1076. * Supercite is installed.
  1077.  
  1078. * `write-file-hooks' functions that return non-nil are responsible
  1079. for making a backup file if you want that to be done.
  1080. To do so, execute the following code:
  1081.  
  1082.    (or buffer-backed-up (backup-buffer))
  1083.  
  1084. You might wish to save the file modes value returned by
  1085. `backup-buffer' and use that to set the mode bits of the file
  1086. that you write.  This is what `basic-save-buffer' does when
  1087. it writes a file in the usual way.
  1088.  
  1089. (This is not actually new, but wasn't documented before.)
  1090.  
  1091. Changes in version 19.10.
  1092.  
  1093. * The command `repeat-complex-command' is now on C-x ESC ESC.
  1094. It used to be bound to C-x ESC.
  1095.  
  1096. The reason for this change is to make function keys work after C-x.
  1097.  
  1098. * The variable `highlight-nonselected-windows' now controls whether
  1099. the region is highlighted in windows other than the selected window
  1100. (in Transient Mark mode only, of course, and currently only when
  1101. using X).
  1102.  
  1103. Changes in version 19.8.
  1104.  
  1105. * It is now simpler to tell Emacs to display accented characters under
  1106. X windows.  M-x standard-display-european toggles the display of
  1107. buffer text according to the ISO Latin-1 standard.  With a prefix
  1108. argument, this command enables European character display iff the
  1109. argument is positive.
  1110.  
  1111. * The `-i' command-line argument tells Emacs to use a picture of the
  1112. GNU gnu as its icon, instead of letting the window manager choose an
  1113. icon for it.  This option used to insert a file into the current
  1114. buffer; use `-insert' to do that now.
  1115.  
  1116. * The `configure' script now supports `--prefix' and `--exec-prefix'
  1117. options.
  1118.  
  1119. The `--prefix=PREFIXDIR' option specifies where the installation process
  1120. should put emacs and its data files.  This defaults to `/usr/local'.
  1121. - Emacs (and the other utilities users run) go in PREFIXDIR/bin
  1122.   (unless the `--exec-prefix' option says otherwise).
  1123. - The architecture-independent files go in PREFIXDIR/lib/emacs/VERSION
  1124.   (where VERSION is the version number of Emacs, like `19.7').
  1125. - The architecture-dependent files go in
  1126.   PREFIXDIR/lib/emacs/VERSION/CONFIGURATION
  1127.   (where CONFIGURATION is the configuration name, like mips-dec-ultrix4.2),
  1128.   unless the `--exec-prefix' option says otherwise.
  1129.  
  1130. The `--exec-prefix=EXECDIR' option allows you to specify a separate
  1131. portion of the directory tree for installing architecture-specific
  1132. files, like executables and utility programs.  If specified,
  1133. - Emacs (and the other utilities users run) go in EXECDIR/bin, and
  1134. - The architecture-dependent files go in
  1135.   EXECDIR/lib/emacs/VERSION/CONFIGURATION.
  1136. EXECDIR/bin should be a directory that is normally in users' PATHs.
  1137.  
  1138. * When running under X Windows, the new lisp function `x-list-fonts'
  1139. allows code to find out which fonts are available from the X server.
  1140. The first argument PATTERN is a string, perhaps with wildcard characters;
  1141.   the * character matches any substring, and
  1142.   the ? character matches any single character.
  1143.   PATTERN is case-insensitive.
  1144. If the optional arguments FACE and FRAME are specified, then
  1145. `x-list-fonts' returns only fonts the same size as FACE on FRAME.
  1146.  
  1147.  
  1148.  
  1149. Changes in version 19.
  1150.  
  1151. * When you kill buffers, Emacs now returns memory to the operating system,
  1152. thus reducing the size of the Emacs process.  All the space that you free
  1153. up by killing buffers can now be reused for other buffers no matter what
  1154. their sizes, or reused by other processes if Emacs doesn't need it.
  1155.  
  1156. * Emacs now does garbage collection and auto saving while it is waiting
  1157. for input, which often avoids the need to do these things while you
  1158. are typing.
  1159.  
  1160. The variable `auto-save-timeout' says how many seconds Emacs should
  1161. wait, after you stop typing, before it does an auto save and a garbage
  1162. collection.
  1163.  
  1164. * If auto saving detects that a buffer has shrunk greatly, it refrains
  1165. from auto saving that buffer and displays a warning.  Now it also turns
  1166. off Auto Save mode in that buffer, so that you won't get the same
  1167. warning again.
  1168.  
  1169. If you reenable Auto Save mode in that buffer, Emacs will start saving
  1170. it again with no further warnings.
  1171.  
  1172. * A new minor mode called Line Number mode displays the current line
  1173. number in the mode line, updating it as necessary when you move
  1174. point.
  1175.  
  1176. However, if the buffer is very large (larger than the value of
  1177. `line-number-display-limit'), then the line number doesn't appear.
  1178. This is because computing the line number can be painfully slow if the
  1179. buffer is very large.
  1180.  
  1181. * You can quit while Emacs is waiting to read or write files.
  1182.  
  1183. * The arrow keys now have default bindings to move in the appropriate
  1184. directions. 
  1185.  
  1186. * You can suppress next-line's habit of inserting a newline when
  1187. called at the end of a buffer by setting next-line-add-newlines to nil
  1188. (it defaults to t).
  1189.  
  1190. * You can now get back recent minibuffer inputs conveniently.  While
  1191. in the minibuffer, type M-p to fetch the next earlier minibuffer
  1192. input, and use M-n to fetch the next later input.
  1193.  
  1194. There are also commands to search forward or backward through the
  1195. history for history elements that match a regular expression.  M-r
  1196. searches older elements in the history, while M-s searches newer
  1197. elements.  By special dispensation, these commands can always use the
  1198. minibuffer to read their arguments even though you are already in the
  1199. minibuffer when you issue them.
  1200.  
  1201. The history feature is available for all uses of the minibuffer, but
  1202. there are separate history lists for different kinds of input.  For
  1203. example, there is a list for file names, used by all the commands that
  1204. read file names.  There is a list for arguments of commands like
  1205. `query-replace'.  There are also very specific history lists, such
  1206. as the one that `compile' uses for compilation commands.
  1207.  
  1208. * You can now display text in a mixture of fonts and colors, using the
  1209. "face" feature, together with the overlay and text property features.
  1210. See the Emacs Lisp manual for details.  The Emacs Users Manual describes
  1211. how to change the colors and font of standard predefined faces.
  1212.  
  1213. * You can refer to files on other machines using special file name syntax:
  1214.  
  1215. /HOST:FILENAME
  1216. /USER@HOST:FILENAME
  1217.  
  1218. When you do this, Emacs uses the FTP program to read and write files on
  1219. the specified host.  It logs in through FTP using your user name or the
  1220. name USER.  It may ask you for a password from time to time; this
  1221. is used for logging in on HOST.
  1222.  
  1223. * Some C-x key bindings have been moved onto new prefix keys.
  1224.  
  1225. C-x r is a prefix for registers and rectangles.
  1226. C-x n is a prefix for narrowing.
  1227. C-x a is a prefix for abbrev commands.
  1228.  
  1229. C-x r C-SPC
  1230. C-x r SPC    point-to-register    (Was C-x /)
  1231. C-x r j        jump-to-register     (Was C-x j)
  1232. C-x r s        copy-to-register     (Was C-x x)
  1233. C-x r i        insert-register      (Was C-x g)
  1234. C-x r r        copy-rectangle-to-register  (Was C-x r)
  1235. C-x r k        kill-rectangle
  1236. C-x r y        yank-rectangle
  1237. C-x r o        open-rectangle
  1238. C-x r f        frame-configuration-to-register
  1239.           (This saves the state of all windows in all frames.)
  1240. C-x r w        window-configuration-to-register
  1241.           (This saves the state of all windows in the selected  frame.)
  1242.  
  1243. (Use C-x r j to restore a configuration saved with C-x r f or C-x r w.)
  1244.  
  1245. C-x n n        narrow-to-region    (Was C-x n)
  1246. C-x n p        narrow-to-page        (Was C-x p)
  1247. C-x n w        widen            (Was C-x w)
  1248.  
  1249. C-x a l        add-mode-abbrev        (Was C-x C-a)
  1250. C-x a g        add-global-abbrev    (Was C-x +)
  1251. C-x a i l    inverse-add-mode-abbrev    (Was C-x C-h)
  1252. C-x a i g    inverse-add-global-abbrev  (Was C-x -)
  1253. C-x a e        expand-abbrev        (Was C-x ')
  1254.  
  1255. (The old key bindings C-x /, C-x j, C-x x and C-x g
  1256. have not yet been removed.)
  1257.  
  1258. * You can put a file name in a register to be able to visit the file
  1259. quickly.  Do this:
  1260.  
  1261.    (set-register ?CHAR '(file . NAME))
  1262.  
  1263. where NAME is the file name as a string.  Then C-x r j CHAR finds that
  1264. file.
  1265.  
  1266. This is useful for files that you need to visit frequently,
  1267. but that you don't want to keep in buffers all the time.
  1268.  
  1269. * The keys M-g (fill-region) and C-x a (append-to-buffer)
  1270. have been eliminated.
  1271.  
  1272. * The new command `string-rectangle' inserts a specified string on
  1273. each line of the region-rectangle.
  1274.  
  1275. * C-x 4 r is now `find-file-read-only-other-window'.
  1276.  
  1277. * C-x 4 C-o is now `display-buffer', which displays a specified buffer
  1278. in another window without selecting it.
  1279.  
  1280. * Picture mode has been substantially improved.  The picture editing commands
  1281. now arrange for automatic horizontal scrolling to keep point visible
  1282. when editing a wide buffer with truncate-lines on.  Picture-mode
  1283. initialization now does a better job of rebinding standard commands;
  1284. it finds not just their normal keybindings, but any function keys
  1285. attached to them.
  1286.  
  1287. * If you enable Transient Mark mode, then the mark becomes "inactive"
  1288. after every command that modifies the buffer.  While the mark is
  1289. active, the region is highlighted (under X, at least).  Most commands
  1290. that use the mark give an error if the mark is inactive, but you can
  1291. use C-x C-x to make it active again.  This feature is also sometimes
  1292. known as "Zmacs mode".
  1293.  
  1294. * Outline mode is now available as a minor mode.  This minor mode can
  1295. combine with any major mode; it substitutes the C-c commands of
  1296. Outline mode for those of the major mode.  Use M-x outline-minor-mode
  1297. to enable and disable the new mode.
  1298.  
  1299. M-x outline-mode is unchanged; it still switches to Outline mode as a
  1300. major mode.
  1301.  
  1302. * The default setting of `version-control' comes from the environment
  1303. variable VERSION_CONTROL.
  1304.  
  1305. * The user option for controlling whether files can set local
  1306. variables is now called `enable-local-variables'.  A value of t means
  1307. local-variables lists are obeyed; nil means they are ignored; anything
  1308. else means query the user.
  1309.  
  1310. The user option for controlling use of the `eval' local variable is
  1311. now called is `enable-local-eval'; its values are interpreted like
  1312. those of `enable-local-variables'.
  1313.  
  1314. * X Window System changes:
  1315.  
  1316. C-x 5 C-f and C-x 5 b switch to a specified file or buffer in a new
  1317. frame.  Likewise, C-x 5 m starts outgoing mail in another frame, and
  1318. C-x 5 . finds a tag in another frame.
  1319.  
  1320. When you are using X, C-z now iconifies the selected frame.
  1321.  
  1322. Emacs can now exchange text with other X applications.  Killing or
  1323. copying text in Emacs now makes that text available for pasting into
  1324. other X applications.  The Emacs yanking commands now insert the
  1325. latest selection set by other applications, and add the text to the
  1326. kill ring.  The Emacs commands for selecting and inserting text with
  1327. the mouse now use the kill ring in the same way the keyboard killing
  1328. and yanking commands do.
  1329.  
  1330. The option to specify the title for the initial frame is now `-name NAME'.
  1331. There is currently no way to specify an icon title; perhaps we will add
  1332. one in the future.
  1333.  
  1334. * Undoing a deletion now puts point back where it was before the
  1335. deletion.
  1336.  
  1337. * The variables that control how much undo information to save have
  1338. been renamed to `undo-limit' and `undo-strong-limit'.  They used to be
  1339. called `undo-threshold' and `undo-high-threshold'.
  1340.  
  1341. * You can now use kill commands in read-only buffers.  They don't
  1342. actually change the buffer, and Emacs will beep and warn you that the
  1343. buffer is read-only, but they do copy the text you tried to kill into
  1344. the kill ring, so you can yank it into other buffers.
  1345.  
  1346. * C-o inserts the fill-prefix on the newly created line.  The command
  1347. M-^ deletes the prefix (if it occurs) after the newline that it
  1348. deletes.
  1349.  
  1350. * C-M-l now runs the command `reposition-window'.  It scrolls the
  1351. window heuristically in a way designed to get useful information onto
  1352. the screen.
  1353.  
  1354. * C-M-r is now reverse incremental regexp search.
  1355.  
  1356. * M-z now kills through the target character.  In version 18, it
  1357. killed up to but not including the target character.
  1358.  
  1359. * M-! now runs the specified shell command asynchronously if it
  1360. ends in `&' (just as the shell does).
  1361.  
  1362. * C-h C-f and C-h C-k are new help commands that display the Info
  1363. node for a given Emacs function name or key sequence, respectively.
  1364.  
  1365. * The C-h p command system lets you find Emacs Lisp packages by
  1366. topic keywords.  Here is a partial list of package categories:
  1367.  
  1368. abbrev          abbreviation handling, typing shortcuts, macros
  1369. bib          code related to the bib bibliography processor
  1370. c          C and C++ language support
  1371. calendar      calendar and time management support
  1372. comm          communications, networking, remote access to files
  1373. docs          support for Emacs documentation
  1374. emulations    emulations of other editors
  1375. extensions    Emacs Lisp language extensions
  1376. games          games, jokes and amusements
  1377. hardware      support for interfacing with exotic hardware
  1378. help          support for on-line help systems
  1379. i14n          internationalization and alternate character-set support
  1380. internal      code for Emacs internals, build process, defaults
  1381. languages     specialized modes for editing programming languages
  1382. lisp          Lisp support, including Emacs Lisp
  1383. local          code local to your site
  1384. maint          maintenance aids for the Emacs development group
  1385. mail          modes for electronic-mail handling
  1386. news          support for netnews reading and posting
  1387. processes     process, subshell, compilation, and job control support
  1388. terminals     support for terminal types
  1389. tex          code related to the TeX formatter
  1390. tools          programming tools
  1391. unix          front-ends/assistants for, or emulators of, UNIX features
  1392. vms          support code for vms
  1393. wp          word processing
  1394.  
  1395. More will be added soon.
  1396.  
  1397. * The command to split a window into two side-by-side windows is now
  1398. C-x 3.  It was C-x 5.
  1399.  
  1400. * M-. (find-tag) no longer has any effect on what M-, will do
  1401. subsequently.  You can no longer use M-, to find the next similar tag;
  1402. you must use M-. with a prefix argument, instead.
  1403.  
  1404. The motive for this change is so that you can more reliably use
  1405. M-, to resume a suspended `tags-search' or `tags-query-replace'.
  1406.  
  1407. * C-x s (`save-some-buffers') now gives you more options when it asks
  1408. whether to save a particular buffer.  In addition to `y' or `n', you
  1409. can answer `!' to save all the remaining buffers, `.' to save this
  1410. buffer but not save any others, ESC to stop saving and exit the
  1411. command, and C-h to get help.  These options are analogous to those 
  1412. of `query-replace'.
  1413.  
  1414. * M-x make-symbolic-link does not expand its first argument.
  1415. This lets you make a link with a target that is a relative file name.
  1416.  
  1417. * M-x add-change-log-entry and C-x 4 a now automatically insert the
  1418. name of the file and often the name of the function that you changed.
  1419. They also handle grouping of entries.
  1420.  
  1421. There is now a special major mode for editing ChangeLog files.  It
  1422. makes filling work conveniently.  Each bunch of grouped entries is one
  1423. paragraph, and each collection of entries from one person on one day
  1424. is considered a page.
  1425.  
  1426. * The `comment-region' command adds comment delimiters to the lines that
  1427. start in the region, thus commenting them out.  With a negative argument,
  1428. it deletes comment delimiters from the lines in the region--this cancels
  1429. the effect of `comment-region' without an argument.
  1430.  
  1431. With a positive argument, `comment-region' adds comment delimiters
  1432. but duplicates the last character of the comment start sequence as many
  1433. times as the argument specifies.  This is a way of calling attention to
  1434. the comment.  In Lisp, you should use an argument at least two, because
  1435. the indentation convention for single semicolon comments does not leave
  1436. them at the beginning of a line.
  1437.  
  1438. * If `split-window-keep-point' is non-nil, C-x 2 tries to avoid
  1439. shifting any text on the screen by putting point in whichever window
  1440. happens to contain the screen line the cursor is already on.
  1441. The default is that `split-window-keep-point' is non-nil on slow
  1442. terminals.
  1443.  
  1444. * M-x super-apropos is like M-x apropos except that it searches both
  1445. Lisp symbol names and documentation strings for matches.  It describes
  1446. every symbol that has a match in either the symbol's name or its
  1447. documentation.
  1448.  
  1449. Both M-x apropos and M-x super-apropos take an optional second
  1450. argument DO-ALL which controls the more expensive part of the job.
  1451. This includes looking up and printing the key bindings of all
  1452. commands.  It also includes checking documentation strings in
  1453. super-apropos.  DO-ALL is nil by default; use a prefix arg to make it
  1454. non-nil.
  1455.  
  1456. * M-x revert-buffer no longer offers to revert from a recent auto-save
  1457. file unless you give it a prefix argument.  Otherwise it always
  1458. reverts from the real file regardless of whether there has been an
  1459. auto-save since thenm.  (Reverting from the auto-save file is no longer
  1460. very useful now that the undo capacity is larger.)
  1461.  
  1462. * M-x recover-file no longer turns off Auto Save mode when it reads
  1463. the last Auto Save file.
  1464.  
  1465. * M-x rename-buffer, if you give it a prefix argument,
  1466. avoids errors by modifying the new name to make it unique.
  1467.  
  1468. * M-x rename-uniquely renames the current buffer to a similar name
  1469. with a numeric suffix added to make it both different and unique.
  1470.  
  1471. One use of this command is for creating multiple shell buffers.
  1472. If you rename your shell buffer, and then do M-x shell again, it
  1473. makes a new shell buffer.  This method is also good for mail buffers,
  1474. compilation buffers, and any Emacs feature which creates a special
  1475. buffer with a particular name.
  1476.  
  1477. * M-x compare-windows with a prefix argument ignores changes in whitespace.
  1478. If `compare-ignore-case' is non-nil, then differences in case are also
  1479. ignored.
  1480.  
  1481. * `backward-paragraph' is now bound to M-{ by default, and `forward-paragraph'
  1482. to M-}.  Originally, these commands were bound to M-[ and M-], but they were
  1483. running into conflicts with the use of function keys.  On many terminals,
  1484. function keys send a sequence beginning ESC-[, so many users have defined this
  1485. as a prefix key.
  1486.  
  1487. * C-x C-u (upcase-region) and C-x C-l (downcase-region) are now disabled by
  1488. default; these commands seem to be often hit by accident, and can be
  1489. quite destructive if their effects are not noticed immediately.
  1490.  
  1491. * The function `erase-buffer' is now interactive, but disabled by default.
  1492.  
  1493. * When visiting a new file, Emacs attempts to abbreviate the file's
  1494. path using the symlinks listed in `directory-abbrev-alist'.
  1495.  
  1496. * When you visit the same file in under two names that translate into
  1497. the same name once symbolic links are handled, Emacs warns you that
  1498. you have two buffers for the same file.
  1499.  
  1500. * If you wish to avoid visiting the same file in two buffers under
  1501. different names, set the variable `find-file-existing-other-name'
  1502. non-nil.  Then `find-file' uses the existing buffer visiting the file,
  1503. no matter which of the file's names you specify.
  1504.  
  1505. * If you set `find-file-visit-truename' non-nil, then the file name
  1506. recorded for a buffer is the file's truename (in which all symbolic
  1507. links have been removed), rather than the name you specify.  Setting
  1508. `find-file-visit-truename' also implies the effect of
  1509. `find-file-existing-other-name'.
  1510.  
  1511. * C-x C-v now inserts the entire current file name in the minibuffer.
  1512. This is convenient if you made a small mistake in typing it.  Point
  1513. goes after the last slash, before the last file name component, so if
  1514. you want to replace it entirely, you can use C-k right away to delete
  1515. it.
  1516.  
  1517. * Commands such as C-M-f in Lisp mode now ignore parentheses within comments.
  1518.  
  1519. * C-x q now uses ESC to terminate all iterations of the keyboard
  1520. macro, rather than C-d as before.
  1521.  
  1522. * Use the command `setenv' to set an individual environment variable
  1523. for Emacs subprocesses.  Specify a variable name and a value, both as
  1524. strings.  This command applies only to subprocesses yet to be
  1525. started.
  1526.  
  1527. * Use `rot13-other-window' to examine a buffer with rot13.
  1528.  
  1529. This command does not change the text in the buffer.  Instead, it
  1530. creates a window with a funny display table that applies the code when
  1531. displaying the text.
  1532.  
  1533. * The command `M-x version' now prints the current Emacs version; The
  1534. `version' command is an alias for the `emacs-version' command.
  1535.  
  1536. * More complex changes in existing packages.
  1537.  
  1538. ** `fill-nonuniform-paragraphs' is a new command, much like
  1539. `fill-individual-paragraphs' except that only separator lines separate
  1540. paragraphs.  Since this means that the lines of one paragraph may have
  1541. different amounts of indentation, the fill prefix used is the smallest
  1542. amount of indentation of any of the lines of the paragraph.
  1543.  
  1544. ** Filling is now partially controlled by a new minor mode, Adaptive
  1545. Fill mode.  When this mode is enabled (and it is enabled by default),
  1546. if you use M-x fill-region-as-paragraph on an indented paragraph and
  1547. you don't have a fill prefix, it uses the indentation of the second
  1548. line of the paragraph as the fill prefix.
  1549.  
  1550. Adaptive Fill mode doesn't have much effect on M-q in most major
  1551. modes, because an indented line will probably count as a paragraph
  1552. starter and thus each line of an indented paragraph will be considered
  1553. a paragraph of its own.
  1554.  
  1555. ** M-q in C mode now runs `c-fill-paragraph', which is designed
  1556. for filling C comments.  (We assume you don't want to fill
  1557. the code in a C program.)
  1558.  
  1559. ** M-$ now runs the Ispell program instead of the Unix spell program.
  1560.  
  1561. M-$ starts an Ispell process the first time you use it.  But the process
  1562. stays alive, so that subsequent uses of M-$ run very fast.
  1563. If you want to get rid of the process, use M-x kill-ispell.
  1564.  
  1565. To check the entire current buffer, use M-x ispell-buffer.
  1566. Use M-x ispell-region to check just the current region.
  1567.  
  1568. Ispell commands often involve interactive replacement of words.
  1569. You can interrupt the interactive replacement with C-g.
  1570. You can restart it again afterward with C-u M-$.
  1571.  
  1572. During interactive replacement, you can type the following characters:
  1573.  
  1574. a    Accept this word this time.
  1575. DIGIT    Replace the word (this time) with one of the displayed near-misses.
  1576.     The digit you use says which near-miss to use.
  1577. i    Insert this word in your private dictionary
  1578.       so that Ispell will consider it correct it from now on.
  1579. r    Replace the word this time with a string typed by you.
  1580.  
  1581. When the Ispell process starts, it reads your private dictionary which
  1582. is the file `~/ispell.words'.  If you "insert" words with the `i' command,
  1583. these words are added to that file, but not right away--only at the end
  1584. of the interactive replacement process.
  1585.  
  1586. Use M-x reload-ispell to reload your private dictionary from
  1587. `~/ispell.words' if you edit it outside of Ispell.
  1588.  
  1589. * Changes in existing modes.
  1590.  
  1591. ** gdb-mode has been replaced by gud-mode.
  1592.  
  1593. The package gud.el (Grand Unified Debugger) replaces gdb.el in Emacs
  1594. 19.  It provides a gdb.el-like interface to any of three debuggers;
  1595. gdb itself, the sdb debugger supported on some Unix systems, or the
  1596. dbx debugger on Berkeley systems.
  1597.  
  1598.    You start it up with one of the commands M-x gdb, M-x sdb, or
  1599. M-x dbx.  Each entry point finishes by executing a hook; gdb-mode-hook,
  1600. sdb-mode-hook or dbx-mode-hook respectively.
  1601.  
  1602. These bindings have changed:
  1603. C-x C-a >    gud-down            (was M-d)
  1604. C-x C-a <    gud-up                (was M-u)
  1605. C-x C-a C-r    gud-cont            (was M-c)
  1606. C-x C-a C-n    gud-next            (was M-n)
  1607. C-x C-a C-s    gud-step            (was M-s)
  1608. C-x C-a C-i     gud-stepi            (was M-i)
  1609. C-x C-a C-l    gud-recenter            (was C-l)
  1610. C-d        comint-delchar-or-maybe-eof    (was C-c C-d)
  1611.  
  1612. These bindings have been removed:
  1613. C-c C-r        (was comint-show-output; now gud-cont)
  1614.  
  1615. Since GUD mode uses comint, it uses comint's input history commands,
  1616. superseding C-c C-y (copy-last-shell-input):
  1617.   M-p        comint-next-input
  1618.   M-n        comint-previous-input
  1619.   M-r        comint-previous-similar-input
  1620.   M-s        comint-next-similar-input
  1621.   M-C-r        comint-previous-input-matching
  1622.  
  1623. The C-x C-a bindings are also active in source files.
  1624.  
  1625. ** The old TeX mode bindings of M-{ and M-} have been moved to C-c {
  1626. and C-c }.  (These commands are `up-list' and `tex-insert-braces';
  1627. they are the TeX equivalents of M-( and M-).)  This is because M-{ 
  1628. and M-} are now globally defined commands.
  1629.  
  1630. ** Changes in Mail mode.
  1631.  
  1632. `%' is now a word-separator character in Mail mode.
  1633.  
  1634. `mail-signature', if non-nil, tells M-x mail to insert your
  1635. `.signature' file automatically.  If you don't want your signature in
  1636. a particular message, just delete it before you send the message.
  1637.  
  1638. You can specify the text to insert at the beginning of each line when
  1639. you use C-c C-y to yank the message you are replying to.  Set
  1640. `mail-yank-prefix' to the desired string.  A value of `nil' (the
  1641. default) means to use indentation, as in Emacs 18.  If you use just
  1642. C-u as the prefix argument to C-c C-y, then it does not insert
  1643. anything at the beginning of the lines, regardless of the value of
  1644. `mail-yank-prefix'.
  1645.  
  1646. If you like, you can expand mail aliases as abbrevs, as soon as you
  1647. type them in.  To enable this feature, execute the following:
  1648.  
  1649.     (add-hook 'mail-setup-hook 'mail-abbrevs-setup)
  1650.  
  1651. This can go in your .emacs file.
  1652.  
  1653. Word abbrevs don't expand unless you insert a word-separator character
  1654. afterward.  Any mail aliases that you didn't expand at insertion time
  1655. are expanded subsequently when you send the message.
  1656.  
  1657. ** Changes in Rmail.
  1658.  
  1659. Rmail by default gets new mail only from the system inbox file,
  1660. not from `~/mbox'.
  1661.  
  1662. In Rmail, you can retry sending a message that failed
  1663. by typing `M-m' on the failure message.
  1664.  
  1665. By contrast, another new command M-x rmail-resend is used for
  1666. forwarding a message and marking it as "resent from" you
  1667. with header fields "Resent-From:" and "Resent-To:".
  1668.  
  1669. `e' is now the command to edit a message.
  1670. To expunge, type `x'.  We know this will surprise people
  1671. some of the time, but the surprise will not be disastrous--if
  1672. you type `e' meaning to expunge, just turn off editing with C-c C-c
  1673. and then type `x'.
  1674.  
  1675. Another new Rmail command is `<', which moves to the first message.
  1676. This is for symmetry with `>'.
  1677.  
  1678. Use the `b' command to bury the Rmail buffer and its summary buffer,
  1679. if any, removing both of them from display on the screen.
  1680.  
  1681. The variable `rmail-output-file-alist' now controls the default
  1682. for the file to output a message to.
  1683.  
  1684. In the Rmail summary buffer, all cursor motion commands select
  1685. the message you move to.  It's really neat when you use
  1686. incremental search.
  1687.  
  1688. You can now issue most Rmail commands from an Rmail summary buffer.
  1689. The commands do the same thing in that buffer that they do in the
  1690. Rmail buffer.  They apply to the message that is selected in the Rmail
  1691. buffer, which is always the one described by the current summary
  1692. line.
  1693.  
  1694. Conversely, motion and deletion commands in the Rmail buffer also
  1695. update the summary buffer.  If you set the variable
  1696. `rmail-redisplay-summary' to a non-nil value, then they bring the
  1697. summary buffer (if one exists) back onto the screen.
  1698.  
  1699. C-M-t is a new command to make a summary by topic.  It uses regexp
  1700. matching against just the subjects of the messages to decide which
  1701. messages to show in the summary.
  1702.  
  1703. You can easily convert an Rmail file to system mailbox format with the
  1704. command `unrmail'.  This command reads two arguments, the name of
  1705. the Rmail file to convert, and the name of the new mailbox file.
  1706. (This command does not change the Rmail file itself.)
  1707.  
  1708. Rmail now handles Content Length fields in messages.
  1709.  
  1710. ** `mail-extract-address-components' unpacks mail addresses.
  1711. It takes an address as a string (the contents of the From field, for
  1712. example) and returns a list of the form (FULL-NAME
  1713. CANONICAL-ADDRESS).
  1714.  
  1715. ** Changes in C mode and C-related commands.
  1716.  
  1717. *** M-x c-up-conditional
  1718.  
  1719. In C mode, `c-up-conditional' moves back to the containing
  1720. preprocessor conditional, setting the mark where point was
  1721. previously.
  1722.  
  1723. A prefix argument acts as a repeat count.  With a negative argument,
  1724. this command moves forward to the end of the containing preprocessor
  1725. conditional.  When going backwards, `#elif' acts like `#else' followed
  1726. by `#if'.  When going forwards, `#elif' is ignored.
  1727.  
  1728. *** In C mode, M-a and M-e are now defined as
  1729. `c-beginning-of-statement' and `c-end-of-statement'.
  1730.  
  1731. *** In C mode, M-x c-backslash-region is a new command to insert or
  1732. align `\' characters at the ends of the lines of the region, except
  1733. for the last such line.  This is useful after writing or editing a C
  1734. macro definition.
  1735.  
  1736. If a line already ends in `\', this command adjusts the amount of
  1737. whitespace before it.  Otherwise, it inserts a new `\'.
  1738.  
  1739. ** New features in info.
  1740.  
  1741. When Info looks for an Info file, it searches the directories
  1742. in `Info-directory-list'.  This makes it easy to install the Info files
  1743. that come with various packages.  You can specify the path with
  1744. the environment variable INFOPATH.
  1745.  
  1746. There are new commands in Info mode.
  1747.  
  1748. `]' now moves forward a node, going up and down levels as needed.
  1749. `[' is similar but moves backward.  These two commands try to traverse
  1750. the entire Info tree, node by node.  They are the equivalent of reading
  1751. a printed manual sequentially.
  1752.  
  1753. `<' moves to the top node of the current Info file.
  1754. `>' moves to the last node of the file.
  1755.  
  1756. SPC scrolls through the current node; at the end, it advances to the
  1757. next node in depth-first order (like `]').
  1758.  
  1759. DEL scrolls backwards in the current node; at the end, it moves to the
  1760. previous node in depth-first order (like `[').
  1761.  
  1762. After a menu select, the info `up' command now restores point in the
  1763. menu.  The combination of this and the previous two changes means that
  1764. repeated SPC keystrokes do the right (depth-first traverse forward) thing.
  1765.  
  1766. `i STRING RET' moves to the node associated with STRING in the index
  1767. or indices of this manual.  If there is more than one match for
  1768. STRING, the `i' command finds the first match.
  1769.  
  1770. `,' finds the next match for the string in the previous `i' command
  1771.  
  1772. If you click the middle mouse button near a cross-reference,
  1773. menu item or node pointer while in Info, you will go to the node
  1774. which is referenced.
  1775.  
  1776. ** Changes in M-x compile.
  1777.  
  1778. You can repeat any previous compilation command conveniently using the
  1779. minibuffer history commands, while in the minibuffer entering the
  1780. compilation command.
  1781.  
  1782. While a compilation is going on, the string `Compiling' appears in
  1783. the mode line.  When this string disappears, that tells you the
  1784. compilation is finished.
  1785.  
  1786. The buffer of compiler messages is in Compilation mode.  This mode
  1787. provides the keys SPC and DEL to scroll by screenfuls, and M-n and M-p
  1788. to move to the next or previous error message.  You can also use C-c
  1789. C-c on any error message to find the corresponding source code.
  1790.  
  1791. Emacs 19 has a more general parser for compiler messages.  For example, it
  1792. can understand messages from lint, and from certain C compilers whose error
  1793. message format is unusual.  Also, it only parses until it sees the error
  1794. message you want; you never have to wait a long time to see the first
  1795. error, no matter how big the buffer is.
  1796.  
  1797. ** M-x diff and M-x diff-backup.
  1798.  
  1799. This new command compares two files, displaying the differences in an
  1800. Emacs buffer.  The options for the `diff' program come from the
  1801. variable `diff-switches', whose value should be a string.
  1802.  
  1803. The buffer of differences has Compilation mode as its major mode, so you
  1804. can use C-x ` to visit successive changed locations in the two
  1805. source files, or you can move to a particular hunk of changes and type
  1806. C-c C-c to move to the corresponding source.  You can also use the
  1807. other special commands of Compilation mode: SPC and DEL for
  1808. scrolling, and M-n and M-p for cursor motion.
  1809.  
  1810. M-x diff-backup compares a file with its most recent backup.
  1811. If you specify the name of a backup file, `diff-backup' compares it
  1812. with the source file that it is a backup of.
  1813.  
  1814. ** The View commands (such as M-x view-buffer and M-x view-file) no
  1815. longer use recursive edits; instead, they switch temporarily to a
  1816. different major mode (View mode) specifically designed for moving
  1817. around through a buffer without editing it.
  1818.  
  1819. ** Changes in incremental search.
  1820.  
  1821. *** The character to terminate an incremental search is now RET.
  1822. This is for compatibility with the way most other arguments are read.
  1823.  
  1824. To search for a newline in an incremental search, type LFD (also known
  1825. as C-j).
  1826.  
  1827. *** Incremental search now maintains a ring of previous search
  1828. strings.  Use M-p and M-n to move through the ring to pick a search
  1829. string to reuse.  These commands leave the selected search ring
  1830. element in the minibuffer, where you can edit it.  Type C-s or C-r to
  1831. finish editing and search for the chosen string.
  1832.  
  1833. *** If you type an upper case letter in incremental search, that turns
  1834. off case-folding, so that you get a case-sensitive search.
  1835.  
  1836. *** If you type a space during regexp incremental search, it matches
  1837. any sequence of whitespace characters.  If you want to match just a space,
  1838. type C-q SPC.
  1839.  
  1840. *** Incremental search is now implemented as a major mode.  When you
  1841. type C-s, it switches temporarily to a different keymap which defines
  1842. each key to do what it ought to do for incremental search.  This has
  1843. next to no effect on the user-visible behavior of searching, but makes
  1844. it easier to customize that behavior.
  1845.  
  1846. Emacs 19 eliminates the old variables `search-...-char' that used to
  1847. be the way to specify the characters to use for various special
  1848. purposes in incremental search.  Instead, you can define the meaning
  1849. of a character in incremental search by modifying `isearch-mode-map'.
  1850.  
  1851. ** New commands in Buffer Menu mode.
  1852.  
  1853. The command C-o now displays the current line's buffer in another
  1854. window but does not select it.  This is like the existing command `o'
  1855. which selects the current line's buffer in another window.
  1856.  
  1857. The command % toggles the read-only flag of the current line's buffer.
  1858.  
  1859. The way to switch to a set of several buffers, including those marked
  1860. with m, is now v.  The q command simply quits, replacing the buffer
  1861. menu buffer with the buffer that was displayed previously.
  1862.  
  1863. * New major modes and packages.
  1864.  
  1865. ** The news reader GNUS is now installed.
  1866.  
  1867. ** There is a new interface for version control systems, called VC.
  1868. It works with both RCS and SCCS; in fact, you don't really have to
  1869. know which one of them is being used, because it automatically deals
  1870. with either one.
  1871.  
  1872. Most of the time, the only command you have to know about is C-x C-q.
  1873. This command normally toggles the read-only flag of the current
  1874. buffer.  If the buffer is visiting a file that is maintained with a
  1875. version control system, the command still toggles read-only, but does
  1876. so by checking the file in or checking it out.
  1877.  
  1878. When you check a file in, VC asks you for a log entry by popping up a
  1879. buffer.  Edit the entry there, then type C-c C-c when it is ready.
  1880. That's when the actual checkin happens.  If you change your mind about
  1881. the checkin, simply switch buffers and don't ever go back to the log
  1882. buffer.
  1883.  
  1884. To start using version control for a file, use the command C-x v v.
  1885. This works like C-x C-q (performing the next logical version-control
  1886. operation needed to change the file's writeability) but it will also
  1887. perform initial checkin on an unregistered file.
  1888.  
  1889. By default, VC uses RCS if RCS is installed on your machine;
  1890. otherwise, SCCS.  If you want to make the choice explicitly, you can do
  1891. it by setting `vc-default-back-end' to the symbol `RCS' or the symbol
  1892. `SCCS'.
  1893.  
  1894. You can tell when a file you visit is maintained with version control
  1895. because either `RCS' or `SCCS' appears in the mode line.
  1896.  
  1897. ** A new Calendar mode has been added, the work of Edward M. Reingold.
  1898. The mode can display the Gregorian calendar and a variety of other
  1899. calendars at any date, and interacts with a diary facility similar to
  1900. the UNIX `calendar' utility.
  1901.  
  1902. ** There is a new major mode for editing binary files: Hexl mode.
  1903. To use it, use M-x hexl-find-file instead of C-x C-f to visit the file.
  1904. This command converts the file's contents to hexadecimal and lets you
  1905. edit the translation.  When you save the file, it is converted 
  1906. automatically back to binary.
  1907.  
  1908. You can also use M-x hexl-mode to translate an existing buffer into hex.
  1909. Do this if you have already visited a binary file.  
  1910.  
  1911. Hexl mode has a few other commands:
  1912.  
  1913. C-M-d    insert a byte with a code typed in decimal.
  1914. C-M-o    insert a byte with a code typed in octal.
  1915. C-M-x    insert a byte with a code typed in hex.
  1916.  
  1917. C-x [   move to the beginning of a 1k-byte "page".
  1918. C-x ]   move to the end of a 1k-byte "page".
  1919.  
  1920. M-g     go to an address specified in hex.
  1921. M-j    go to an address specified in decimal.
  1922.  
  1923. C-c C-c    leave hexl mode and go back to the previous major mode.
  1924.  
  1925. ** Miscellaneous new major modes include Awk mode, Icon mode, Makefile
  1926. mode, Perl mode and SGML mode.
  1927.  
  1928. ** Edebug, a new source-level debugger for Emacs Lisp functions.
  1929.  
  1930. To use Edebug, use the command M-x edebug-defun to "evaluate" a
  1931. function definition in an Emacs Lisp file.  We put "evaluate" in
  1932. quotation marks because it doesn't just evaluate the function, it also
  1933. inserts additional information to support source-level debugging.
  1934.  
  1935. You must also do
  1936.  
  1937.     (setq debugger 'edebug-debug)
  1938.  
  1939. to cause errors and single-stepping to use Edebug instead of the usual
  1940. Emacs Lisp debugger.
  1941.  
  1942. For more information, see the Edebug manual, which should be included
  1943. in the Emacs distribution.
  1944.  
  1945. ** C++ mode is like C mode, except that it understands C++ comment syntax
  1946. and certain other differences between C and C++.  It also has a command
  1947. `fill-c++-comment' which fills a paragraph made of comment lines.
  1948.  
  1949. The command `comment-region' is useful in C++ mode for commenting out
  1950. several consecutive lines, or removing the commenting out of such lines.
  1951.  
  1952. ** A new package for merging two variants of the same text.
  1953.  
  1954. It's not unusual for programmers to get their signals crossed and
  1955. modify the same program in two different directions.  Then somebody
  1956. has to merge the two versions.  The command `emerge-files' makes this
  1957. easier.
  1958.  
  1959. `emerge-files' reads two file names and compares them.  Then it
  1960. displays three buffers: one for each file, and one for the
  1961. differences.
  1962.  
  1963. If the original version of the file is available, you can make things
  1964. even easier using `emerge-files-with-ancestor'.  It reads three file
  1965. names--variant 1, variant 2, and the common ancestor--and uses diff3
  1966. to compare them.
  1967.  
  1968. You control the merging interactively.  The main loop of Emerge
  1969. consists of showing you one set of differences, asking you what to do
  1970. about them, and doing it.  You have a choice of two modes for giving
  1971. directions to Emerge: "fast" mode and "edit" mode.
  1972.  
  1973. In Fast mode, Emerge commands are single characters, and ordinary
  1974. Emacs commands are disabled.  This makes Emerge operations fast, but
  1975. prevents you from doing more than selecting the A or the B version of
  1976. differences.  In Edit mode, all emerge commands use the C-c prefix,
  1977. and the usual Emacs commands are available.  This allows editing the
  1978. merge buffer, but slows down Emerge operations.  Edit and fast modes
  1979. are indicated by `F' and `E' in the minor modes in the mode line.
  1980.  
  1981. The Emerge commands are:
  1982.  
  1983.     p    go to the previous difference
  1984.     n    go to the next difference
  1985.     a    select the A version of this difference
  1986.     b    select the B version of this difference
  1987.     j    go to a particular difference (prefix argument
  1988.         specifies which difference) (0j suppresses display of
  1989.         the flags)
  1990.     q    quit - finish the merge*
  1991.     f    go into fast mode
  1992.     e    go into edit mode
  1993.     l    recenter (C-l) all three windows*
  1994.     - and 0 through 9
  1995.         prefix numeric arguments
  1996.     d a    select the A version as the default from here down in
  1997.         the merge buffer*
  1998.     d b    select the B version as the default from here down in
  1999.         the merge buffer*
  2000.     c a    copy the A version of the difference into the kill
  2001.         ring
  2002.     c b    copy the B version of the difference into the kill
  2003.         ring
  2004.     i a    insert the A version of the difference at the point
  2005.     i b    insert the B version of the difference at the point
  2006.     m    put the point and mark around the difference region
  2007.     ^    scroll-down (like M-v) the three windows*
  2008.     v    scroll-up (like C-v) the three windows*
  2009.     <    scroll-left (like C-x <) the three windows*
  2010.     >    scroll-right (like C-x >) the three windows*
  2011.     |    reset horizontal scroll on the three windows*
  2012.     x 1    shrink the merge window to one line (use C-u l to restore it
  2013.         to full size)
  2014.     x a    find the difference containing a location in the A buffer*
  2015.     x b    find the difference containing a location in the B buffer*
  2016.     x c    combine the two versions of this difference*
  2017.     x C    combine the two versions of this difference, using a
  2018.         register's value as the template*
  2019.     x d    find the difference containing a location in the merge buffer*
  2020.     x f    show the files/buffers Emerge is operating on in Help window
  2021.         (use C-u l to restore windows)
  2022.     x j    join this difference with the following one
  2023.         (C-u x j joins this difference with the previous one)
  2024.     x l    show line numbers of points in A, B, and merge buffers
  2025.     x m    change major mode of merge buffer*
  2026.     x s    split this difference into two differences
  2027.         (first position the point in all three buffers to the places
  2028.         to split the difference)
  2029.     x t    trim identical lines off top and bottom of difference
  2030.         (such lines occur when the A and B versions are
  2031.         identical but differ from the ancestor version)
  2032.     x x    set the template for the x c command*
  2033.  
  2034. Normally, the merged output goes back in the first file specified.
  2035. If you use a prefix argument, Emerge reads another file name to use
  2036. for the output file.
  2037.  
  2038. Once Emerge has prepared the buffer of differences, it runs the hooks
  2039. in `emerge-startup-hooks'.
  2040.  
  2041. ** Asm mode is a new major mode for editing files of assembler code.
  2042. It defines these commands:
  2043.  
  2044. TAB    tab-to-tab-stop.
  2045. LFD    Insert a newline and then indent using tab-to-tab-stop.
  2046. :    Insert a colon and then remove the indentation
  2047.     from before the label preceding colon.  Then tab-to-tab-stop.
  2048. ;    Insert or align a comment.
  2049.  
  2050. ** Two-column mode lets you conveniently edit two side-by-side columns
  2051. of text.  It works using two side-by-side windows, each showing its
  2052. own buffer.
  2053.  
  2054. Here are three ways to enter two-column mode:
  2055.  
  2056. C-x 6 2 makes the current buffer into the left-hand buffer.  In the
  2057. right-hand window it puts a buffer whose name is based on the current
  2058. buffer's name.
  2059.  
  2060. C-x 6 b BUFFER RET makes the current buffer into the left-hand buffer,
  2061. and uses buffer BUFFER as the right-hand buffer.
  2062.  
  2063. C-x 6 s splits the current buffer, which contains two-column text,
  2064. into two side-by-side buffers.  The old current buffer becomes the
  2065. left-hand buffer, but the text in the right column is moved into the
  2066. right-hand buffer.  The current column specifies the split point.
  2067. Splitting starts with the current line and continues to the end of the
  2068. buffer.
  2069.  
  2070. C-x 6 s takes a prefix argument which specifies how many characters
  2071. before point constitute the column separator.  (The default argument
  2072. is 1, as usual, so by default the column separator is the character
  2073. before point.)  Lines that don't have the column separator at the
  2074. proper place remain unsplit; they stay in the left-hand buffer, and
  2075. the right-hand buffer gets an empty line to correspond.
  2076.  
  2077. You can scroll both buffers together using C-x 6 SPC (scroll up), C-x
  2078. 6 DEL (scroll down), and C-x 6 RET (scroll up one line).  C-x 6 C-l
  2079. recenters both buffers together.
  2080.  
  2081. If you want to make a line which will span both columns, put it in
  2082. the left-hand buffer, with an empty line in the corresponding place in
  2083. the right-hand buffer.
  2084.  
  2085. When you have edited both buffers as you wish, merge them with C-x 6
  2086. 1.  This copies the text from the right-hand buffer as a second column
  2087. in the other buffer.  To go back to two-column editing, use C-x 6 s.
  2088.  
  2089. Use C-x 6 d to disassociate the two buffers, leaving each as it
  2090. stands.  (If the other buffer, the one that was not current when you
  2091. type C-x 6 d, is empty, C-x 6 d kills it.)
  2092.  
  2093. ** You can supply command arguments such as files to visit to an Emacs
  2094. that is already running.  To do this, you must do this in your .emacs
  2095. file:
  2096.    (add-hook 'suspend-hook 'resume-suspend-hook)
  2097. Also you must use the shellscript emacs.csh or emacs.sh, found in the
  2098. etc subdirectory.
  2099.  
  2100. ** Shell mode has been completely replaced.
  2101. The basic idea is the same, but there are new commands available in
  2102. this mode.
  2103.       
  2104. TAB now completes the file name before point in the shell buffer.
  2105. To get a list of all possible completions, type M-?.
  2106.  
  2107. There is a new convenient history mechanism for repeating previous
  2108. commands.  Use the command M-p to recall the last command; it copies
  2109. the text of that command to the place where you are editing.  If you
  2110. repeat M-p, it replaces the copied command with the previous command.
  2111. M-n is similar but goes in the opposite direction towards the present.
  2112. When you find the command you wanted, you can edit it, or just
  2113. resubmit it by typing RET.
  2114.  
  2115. You can also use M-r and M-s to search for (respectively) earlier or 
  2116. later inputs starting with a given string.  First type the string, 
  2117. then type M-r to yank a previous input from the history which starts
  2118. with that string.  You can repeat M-r to find successively earlier
  2119. inputs starting with the same string.  You can start moving in the
  2120. opposite direction (toward more recent inputs) by typing M-s instead
  2121. of M-r.  As long as you don't use any commands except M-r and M-s,
  2122. they keep using the same string that you had entered initially.
  2123.  
  2124. C-c C-o kills the last batch of output from a shell command.  This is
  2125. useful if a shell command spews out lots of output that just gets in
  2126. the way.
  2127.  
  2128. C-c C-r scrolls to display the beginning of the last batch of output
  2129. at the top of the window; it also moves the cursor there.
  2130.  
  2131. C-a on a line that starts with a shell prompt moves to the end of the
  2132. prompt, not to the very beginning of the line.
  2133.  
  2134. C-d typed at the end of the shell buffer sends EOF to the subshell.
  2135. At any other position in the buffer, it deletes a character as usual.
  2136.  
  2137. If Emacs gets confused while trying to track changes in the shell's
  2138. current directory, type M-x dirs to re-synchronize.
  2139.  
  2140. M-x send-invisible reads a line of text without echoing it, and
  2141. sends it to the shell.
  2142.  
  2143. If you accidentally suspend your process, use M-x comint-continue-subjob 
  2144. to continue it.
  2145.          
  2146. ** There is now a convenient way to enable flow control on terminals
  2147. where you can't win without it.  Suppose you want to do this on
  2148. VT-100 and H19 terminals; put the following in your `.emacs' file:
  2149.  
  2150.    (enable-flow-control-on "vt100" "h19")
  2151.  
  2152. When flow control is enabled, you must type C-\ to get the effect of a
  2153. C-s, and type C-^ to get the effect of a C-q.
  2154.  
  2155. The function `enable-flow-control' enables flow control unconditionally.
  2156.  
  2157. * Changes in Dired
  2158.  
  2159. Dired has many new features which allow you to do these things:
  2160.  
  2161. - Rename, copy, or make links to many files at once.
  2162.  
  2163. - Make distinguishable types of marks for different operations.
  2164.  
  2165. - Display contents of subdirectories in the same Dired buffer as the
  2166. parent directory.
  2167.  
  2168. ** Setting and Clearing Marks
  2169.  
  2170. There are now two kinds of marker that you can put on a file in Dired:
  2171. `D' for deletion, and `*' for any other kind of operation.
  2172. The `x' command deletes only files marked with `D', and most
  2173. other Dired commands operate only on the files marked with `*'.
  2174.  
  2175. To mark files with `D' (also called "flagging" the files), you
  2176. can use `d' as usual.  Here are some commands for marking with
  2177. `*' (and also for unmarking):
  2178.  
  2179. *** `m' marks the current file with `*', for an operation other than
  2180. deletion.
  2181.  
  2182. *** `*' marks all executable files.  With a prefix argument, it
  2183. unmarks all those files.
  2184.  
  2185. *** `@' marks all symbolic links.  With a prefix argument, it unmarks
  2186. all those files.
  2187.  
  2188. *** `/' marks all directory files except `.' and `..'.  With a prefix
  2189. argument, it unmarks all those files.
  2190.  
  2191. *** M-DEL removes a specific or all marks from every file.  With an
  2192. argument, queries for each marked file.  Type your help character,
  2193. usually C-h, at that time for help.
  2194.  
  2195. *** `c' replaces all marks that use the character OLD with marks that
  2196. use the character NEW.  You can use almost any character as a mark
  2197. character by means of this command, to distinguish various classes of
  2198. files.  If OLD is ` ', then the command operates on all unmarked
  2199. files; if NEW is ` ', then the command unmarks the files it acts on.
  2200.  
  2201. ** Operating on Multiple Files
  2202.  
  2203. The Dired commands to operate directly on files (rename them, copy
  2204. them, and so on) have been generalized to work on multiple files.
  2205. There are also some additional commands in this series.
  2206.  
  2207. All of these commands use the same convention to decide which files to
  2208. manipulate:
  2209.  
  2210. - If you give the command a numeric prefix argument @var{n}, it operates
  2211. on the next @var{n} files, starting with the current file.
  2212.  
  2213. - Otherwise, if there are marked files, the commands operate on all the
  2214. marked files.
  2215.  
  2216. - Otherwise, the command operates on the current file only.
  2217.  
  2218. These are the commands:
  2219.  
  2220. *** `C' copies the specified files.  You must specify a directory to
  2221. copy into, or (if copying a single file) a new name.
  2222.  
  2223. If `dired-copy-preserve-time' is non-`nil', then copying sets
  2224. the modification time of the new file to be the same as that of the old
  2225. file.
  2226.  
  2227. *** `R' renames the specified files.  You must specify a directory to
  2228. rename into, or (if renaming a single file) a new name.
  2229.  
  2230. Dired automatically changes the visited file name of buffers associated
  2231. with renamed files so that they refer to the new names.
  2232.  
  2233. *** `H' makes hard links to the specified files.  You must specify a
  2234. directory to make the links in, or (if making just one link) the name
  2235. to give the link.
  2236.  
  2237. *** `S' makes symbolic links to the specified files.  You must specify
  2238. a directory to make the links in, or (if making just one link) the
  2239. name to give the link.
  2240.  
  2241. *** `M' changes the mode of the specified files.  This calls the
  2242. `chmod' program, so you can describe the desired mode change with any
  2243. argument that `chmod' would handle.
  2244.  
  2245. *** `G' changes the group of the specified files.
  2246.  
  2247. *** `O' changes the owner of the specified files.  (On normal systems,
  2248. only the superuser can do this.)
  2249.  
  2250. The variable `dired-chown-program' specifies the name of the
  2251. program to use to do the work (different systems put `chown' in
  2252. different places.
  2253.  
  2254. *** `Z' compresses or uncompresses the specified files.
  2255.  
  2256. *** `L' loads the specified Emacs Lisp files.
  2257.  
  2258. *** `B' byte compiles the specified Emacs Lisp files.
  2259.  
  2260. *** `P' prints the specified files.  It uses the variables
  2261. `lpr-command' and `lpr-switches' just as `lpr-file' does.
  2262.  
  2263. ** Shell Commands in Dired
  2264.  
  2265. `!' reads a shell command string in the minibuffer and runs the shell
  2266. command on all the specified files.  There are two ways of applying a
  2267. shell command to multiple files:
  2268.  
  2269. - If you use `*' in the command, then the shell command runs just
  2270. once, with the list of file names substituted for the `*'.
  2271.  
  2272. Thus, `! tar cf foo.tar * RET' runs `tar' on the entire list of file
  2273. names, putting them into one tar file `foo.tar'.  The file names are
  2274. inserted in the order that they appear in the Dired buffer.
  2275.  
  2276. - If the command string doesn't contain `*', then it runs once for
  2277. each file, with the file name attached at the end.  For example, `!
  2278. uudecode RET' runs `uudecode' on each file.
  2279.  
  2280. To run the shell command once for each file but without being limited
  2281. to putting the file name inserted in the middle, use a shell loop.
  2282. For example, this shell command would run `uuencode' on each of the
  2283. specified files, writing the output into a corresponding `.uu' file:
  2284.  
  2285.     for file in *; uuencode $file $file >$file.uu; done
  2286.  
  2287. The working directory for the shell command is the top level directory
  2288. of the Dired buffer.
  2289.  
  2290. ** Regular Expression File Name Substitution
  2291.  
  2292. *** `% m REGEXP RET' marks all files whose names match the regular
  2293. expression REGEXP.
  2294.  
  2295. Only the non-directory part of the file name is used in matching.  Use
  2296. `^' and `$' to anchor matches.  Exclude subdirs by hiding them.
  2297.  
  2298. *** `% d REGEXP RET' flags for deletion all files whose names match
  2299. the regular expression REGEXP.
  2300.  
  2301. *** `% R', `% C', `% H', `% S'
  2302.  
  2303. These four commands rename, copy, make hard links and make soft links,
  2304. in each case computing the new name by regular expression substitution
  2305. from the name of the old file.  They  effectively perform
  2306. `query-replace-regexp' on the selected file names in the Dired buffer.
  2307.  
  2308. The commands read two arguments: a regular expression, and a
  2309. substitution pattern.  Each selected file name is matched against the
  2310. regular expression, and then the part which matched is replaced with
  2311. the substitution pattern.  You can use `\&' and `\DIGIT' in the
  2312. substitution pattern to refer to all or part of the old file name.
  2313.  
  2314. If the regular expression matches more than once in a file name,
  2315. only the first match is replaced.
  2316.  
  2317. Normally, the replacement process does not consider the directory names;
  2318. it operates on the file name within the directory.  If you specify a
  2319. prefix argument of zero, then replacement affects entire file name.
  2320.  
  2321. To apply the command to all files matching the same regexp that you
  2322. use in the command, mark those files with `% m REGEXP RET', then use
  2323. the same regular expression in `% R'.  To make this easier, `% R' uses
  2324. as a default the last regular expression specified in a `%' command.
  2325.  
  2326. ** Dired Case Conversion
  2327.  
  2328. *** `% u' renames each of the selected files to an upper case name.
  2329.  
  2330. *** `% l' renames each of the selected files to a lower case name.
  2331.  
  2332. ** File Comparison with Dired
  2333.  
  2334. *** `=' compares the current file with another file (the file at the
  2335. mark), by running the `diff' program.  The file at the mark is given
  2336. to `diff' first.
  2337.  
  2338. *** `M-=' compares the current file with its backup file.  If there
  2339. are several numerical backups, it uses the most recent one.  If this
  2340. file is a backup, it is compared with its original.
  2341.  
  2342. The backup file is the first file given to `diff'.
  2343.  
  2344. ** Subdirectories in Dired
  2345.  
  2346. You can display more than one directory in one Dired buffer.
  2347. The simplest way to do this is to specify the options `-lR' for
  2348. running `ls'.  That produces a recursive directory listing showing
  2349. all subdirectories, all within the same Dired buffer.
  2350.  
  2351. You can also insert the contents of a particular subdirectory with the
  2352. `i' command.  Use this command on the line that describes a file which
  2353. is a directory.  Inserted subdirectory contents follow the top-level
  2354. directory of the Dired buffer, just as they do in `ls -lR' output.
  2355.  
  2356. If the subdirectory's contents are already present in the buffer, the
  2357. `i' command just moves to it (type `l' to refresh it).  It sets the
  2358. Emacs mark before moving, so C-x C-x takes you back to the old
  2359. position in the buffer.
  2360.  
  2361. When you have subdirectories in the Dired buffer, you can use the page
  2362. motion commands C-x [ and C-x ] to move by entire directories.
  2363.  
  2364. The following commands move up and down in the tree of directories
  2365. in one Dired buffer:
  2366.  
  2367. *** C-M-u  Go up to the parent directory's headerline.
  2368.  
  2369. *** C-M-d  Go down in the tree, to the first subdirectory's
  2370. headerline.
  2371.  
  2372. *** C-M-n  Go to next subdirectory headerline, regardless of level.
  2373.  
  2374. *** C-M-p  Go to previous subdirectory headerline, regardless of
  2375. level.
  2376.  
  2377. ** Hiding Subdirectories
  2378.  
  2379. "Hiding" a subdirectory means to make it invisible, except for its
  2380. headerline.  Files inside a hidden subdirectory are never considered
  2381. by Dired.  For example, the commands to operate on marked files ignore
  2382. files in hidden directories even if they are marked.
  2383.  
  2384. *** `$' hides or unhides the current subdirectory and move to next
  2385. subdirectory.  A prefix argument serves as a repeat count.
  2386.  
  2387. *** `M-$' hides all subdirectories, leaving only their header lines.
  2388. Or, if at least one subdirectory is currently hidden, it makes
  2389. everything visible again.  You can use this command to get an overview
  2390. in very deep directory trees or to move quickly to subdirectories far
  2391. away.
  2392.  
  2393. ** Editing the Dired Buffer
  2394.  
  2395. *** `l' updates the specified files in a Dired buffer.  This means
  2396. reading their current status from the file system and changing the
  2397. buffer to reflect it properly.
  2398.  
  2399. If you use this command on a subdirectory header line, it updates the
  2400. contents of the subdirectory.
  2401.  
  2402. *** `g' updates the entire contents of the Dired buffer.  It preserves
  2403. all marks except for those on files that have vanished.  Hidden
  2404. subdirectories are updated but remain hidden.
  2405.  
  2406. *** `k' kills all marked lines (not the files).  With a prefix
  2407. argument, it kills that many lines starting with the current line.
  2408.  
  2409. This command does not delete files; it just deletes text from the Dired
  2410. buffer.
  2411.  
  2412. If you kill the line for a file that is a directory, then its contents
  2413. are also deleted from the buffer.  Typing `C-u k' on the header line
  2414. for a subdirectory is another way to delete a subdirectory from the
  2415. Dired buffer.
  2416.  
  2417. ** `find' and Dired.
  2418.  
  2419. To search for files with names matching a wildcard pattern use
  2420. `find-name-dired'.  Its arguments are DIRECTORY and
  2421. PATTERN.  It selects all the files in DIRECTORY or its
  2422. subdirectories whose own names match PATTERN.
  2423.  
  2424. The files thus selected are displayed in a Dired buffer in which the
  2425. ordinary Dired commands are available.
  2426.  
  2427. If you want to test the contents of files, rather than their names, use
  2428. `find-grep-dired'.  This command takes two minibuffer arguments,
  2429. DIRECTORY and REGEXP; it selects all the files in
  2430. DIRECTORY or its subdirectories that contain a match for
  2431. REGEXP.  It works by running `find' and `grep'.
  2432.  
  2433. The most general command in this series is `find-dired', which lets
  2434. you specify any condition that `find' can test.  It takes two
  2435. minibuffer arguments, DIRECTORY and FIND-ARGS; it runs `find' in
  2436. DIRECTORY with using FIND-ARGS as the arguments to `find' specifying
  2437. which files to accept.  To use this command, you need to know how to
  2438. use `find'.
  2439.  
  2440. * New amusements and novelties.
  2441.  
  2442. ** `M-x mpuz' displays a multiplication puzzle, in which each letter
  2443. stands for a digit, and you must determine which digit.  The puzzles
  2444. are determined randomly, so they are always different.
  2445.  
  2446. ** `M-x gomoku' plays the game Gomoku with you.  It needs more work.
  2447.  
  2448. ** `M-x spook' adds a line of randomly chosen keywords to an outgoing
  2449. mail message.  The keywords are chosen from a list of words that
  2450. suggest you are discussing something subversive.
  2451.  
  2452. The idea is that the NSA reads all messages that contain keywords
  2453. suggesting they might be interested, and that adding these lines could
  2454. help to overload them.  I would guess that they have modified their
  2455. program by now to ignore these lines of keywords; perhaps the program
  2456. can be updated if some clever hacker can determine what criterion they
  2457. actually use now.
  2458.  
  2459. * Installation changes
  2460.  
  2461. ** The configure script has been provided to help with the
  2462. installation process.  It takes the place of editing the Makefiles and
  2463. src/config.h, and can often guess the appropriate operating system to
  2464. use for a particular machine type.  See INSTALL for a more detailed
  2465. description of the steps required for installation.
  2466.  
  2467. ** If you create a Lisp file named `site-start.el', Emacs loads the file
  2468. whenever it starts up.
  2469.  
  2470. ** A new Lisp variable, `data-directory', indicates the directory
  2471. containing the DOC file, tutorial, copying agreement, and other
  2472. familiar `etc' files.  The value of `data-directory' is a simple string.
  2473. The default should be set at build time, and the person installing
  2474. Emacs should place all the data files in this directory.  The `help.el'
  2475. functions that look for docstrings and information files check this
  2476. variable.  All Emacs Lisp packages should also be coded so that they
  2477. refer to `data-directory' to find data files.
  2478.  
  2479. ** The PURESIZE definition has been moved from config.h to its own
  2480. file, puresize.h.  Since almost every file of C source in the
  2481. distribution depends on config.h, but only alloc.c and data.c depend
  2482. on puresize.h, this means that changing the value of PURESIZE causes
  2483. only those two files to be recompiled.
  2484.  
  2485. ** The makefile at the top of the Emacs source tree now supports a
  2486. `dist' target, which creates a compressed tar file suitable for
  2487. distribution, using the contents of the source tree.  Object files,
  2488. old file versions, executables, DOC files, and other
  2489. architecture-specific or easy-to-recreate files are not included in
  2490. the tar file.
  2491.  
  2492. For older news, see the file ONEWS.
  2493. For Lisp changes in Emacs 19, see the file news.texi.
  2494.  
  2495. ----------------------------------------------------------------------
  2496. Copyright information:
  2497.  
  2498. Copyright (C) 1993 Free Software Foundation, Inc.
  2499.  
  2500.    Permission is granted to anyone to make or distribute verbatim copies
  2501.    of this document as received, in any medium, provided that the
  2502.    copyright notice and this permission notice are preserved,
  2503.    thus giving the recipient permission to redistribute in turn.
  2504.  
  2505.    Permission is granted to distribute modified versions
  2506.    of this document, or of portions of it,
  2507.    under the above conditions, provided also that they
  2508.    carry prominent notices stating who last changed them.
  2509.  
  2510. Local variables:
  2511. mode: text
  2512. end:
  2513.